From 61af8db7948b599edc7ec39f1ad576a3d19999ad Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 13 Jul 2023 02:46:17 +0000 Subject: [PATCH] Public API ListAppBySwimmingLaneGroupTags. --- VERSION | 2 +- mse/CMakeLists.txt | 132 ++ mse/include/alibabacloud/mse/MseClient.h | 264 ++++ .../mse/model/AddAuthPolicyRequest.h | 75 ++ .../mse/model/AddAuthPolicyResult.h | 59 + .../mse/model/AddGatewayAuthConsumerRequest.h | 81 ++ .../mse/model/AddGatewayAuthConsumerResult.h | 65 + .../mse/model/AddGatewayRequest.h | 37 +- .../mse/model/AddGatewayRouteRequest.h | 120 +- .../mse/model/AddGatewayRouteResult.h | 2 + .../mse/model/AddGatewaySlbRequest.h | 9 + .../mse/model/AddMockRuleRequest.h | 18 +- .../mse/model/ApplyTagPoliciesRequest.h | 6 + .../mse/model/CloneNacosConfigRequest.h | 12 +- .../model/CreateCircuitBreakerRuleRequest.h | 87 ++ .../model/CreateCircuitBreakerRuleResult.h | 75 ++ .../mse/model/CreateClusterRequest.h | 57 +- .../mse/model/CreateEngineNamespaceRequest.h | 12 +- .../mse/model/CreateFlowRuleRequest.h | 72 + .../mse/model/CreateFlowRuleResult.h | 70 + .../mse/model/CreateNacosInstanceRequest.h | 12 +- .../mse/model/CreateNacosServiceRequest.h | 12 +- .../CreateOrUpdateSwimmingLaneGroupRequest.h | 42 +- .../CreateOrUpdateSwimmingLaneGroupResult.h | 39 + .../model/CreateOrUpdateSwimmingLaneRequest.h | 67 +- .../model/CreateOrUpdateSwimmingLaneResult.h | 48 + .../mse/model/CreateZnodeRequest.h | 6 +- .../mse/model/DeleteAuthResourceRequest.h | 6 +- .../model/DeleteCircuitBreakerRulesRequest.h | 54 + .../model/DeleteCircuitBreakerRulesResult.h | 59 + .../mse/model/DeleteEngineNamespaceRequest.h | 6 +- .../mse/model/DeleteFlowRulesRequest.h | 54 + .../mse/model/DeleteFlowRulesResult.h | 59 + .../model/DeleteGatewayAuthConsumerRequest.h | 51 + ...DeleteGatewayAuthConsumerResourceRequest.h | 54 + .../DeleteGatewayAuthConsumerResourceResult.h | 65 + .../model/DeleteGatewayAuthConsumerResult.h | 65 + .../mse/model/DeleteGatewayDomainRequest.h | 6 +- .../mse/model/DeleteGatewaySlbRequest.h | 3 + .../mse/model/DeleteMigrationTaskRequest.h | 6 +- .../mse/model/DeleteNacosConfigRequest.h | 18 +- .../mse/model/DeleteNacosConfigsRequest.h | 6 +- .../mse/model/DeleteNacosInstanceRequest.h | 18 +- .../mse/model/DeleteNacosServiceRequest.h | 12 +- .../mse/model/DeleteNamespaceRequest.h | 51 + .../mse/model/DeleteNamespaceResult.h | 59 + .../model/DeleteSecurityGroupRuleRequest.h | 6 +- .../mse/model/DeleteServiceSourceRequest.h | 6 +- .../model/DeleteSwimmingLaneGroupRequest.h | 9 + .../mse/model/DeleteSwimmingLaneRequest.h | 3 + .../mse/model/DeleteZnodeRequest.h | 6 +- .../mse/model/ExportNacosConfigRequest.h | 21 +- .../mse/model/ExportZookeeperDataRequest.h | 57 + .../mse/model/ExportZookeeperDataResult.h | 73 + .../mse/model/FetchLosslessRuleListRequest.h | 63 + .../mse/model/FetchLosslessRuleListResult.h | 82 ++ .../model/GetAppMessageQueueRouteRequest.h | 6 + .../mse/model/GetApplicationListResult.h | 3 + .../GetApplicationListWithMetircsResult.h | 4 +- .../mse/model/GetEngineNamepaceRequest.h | 6 +- .../GetGatewayAuthConsumerDetailRequest.h | 51 + .../GetGatewayAuthConsumerDetailResult.h | 97 ++ .../mse/model/GetGatewayDomainDetailRequest.h | 6 +- .../alibabacloud/mse/model/GetGatewayResult.h | 31 +- .../mse/model/GetGatewayRouteDetailResult.h | 1 + .../GetGovernanceKubernetesClusterRequest.h | 6 +- .../alibabacloud/mse/model/GetImageRequest.h | 6 +- .../mse/model/GetImportFileUrlRequest.h | 6 +- .../mse/model/GetKubernetesSourceRequest.h | 3 + .../mse/model/GetLosslessRuleByAppRequest.h | 57 + .../mse/model/GetLosslessRuleByAppResult.h | 75 ++ .../mse/model/GetNacosConfigRequest.h | 18 +- .../mse/model/GetNacosHistoryConfigRequest.h | 12 +- .../mse/model/GetServiceListPageRequest.h | 72 + .../mse/model/GetServiceListPageResult.h | 80 ++ .../mse/model/GetServiceListenersRequest.h | 18 +- .../mse/model/GetServiceMethodPageRequest.h | 84 ++ .../mse/model/GetServiceMethodPageResult.h | 85 ++ .../GetTagsBySwimmingLaneGroupIdRequest.h | 3 + .../GetTagsBySwimmingLaneGroupIdResult.h | 8 + .../mse/model/ImportNacosConfigRequest.h | 12 +- .../mse/model/ImportServicesRequest.h | 6 + .../mse/model/ImportZookeeperDataRequest.h | 12 +- .../mse/model/ListAnsServiceClustersRequest.h | 3 - .../mse/model/ListAnsServiceClustersResult.h | 16 + .../mse/model/ListAnsServicesRequest.h | 18 +- .../mse/model/ListAnsServicesResult.h | 1 + .../ListAppBySwimmingLaneGroupTagRequest.h | 15 +- .../ListApplicationsWithTagRulesRequest.h | 9 +- .../ListApplicationsWithTagRulesResult.h | 3 +- .../mse/model/ListAuthPolicyRequest.h | 69 + .../mse/model/ListAuthPolicyResult.h | 101 ++ .../model/ListCircuitBreakerRulesRequest.h | 66 + .../mse/model/ListCircuitBreakerRulesResult.h | 85 ++ .../model/ListClusterHealthCheckTaskRequest.h | 6 +- .../mse/model/ListClusterTypesRequest.h | 6 +- .../mse/model/ListClustersRequest.h | 12 +- .../mse/model/ListConfigTrackRequest.h | 18 +- .../mse/model/ListEngineNamespacesRequest.h | 12 +- .../mse/model/ListEngineNamespacesResult.h | 1 + .../mse/model/ListEurekaInstancesRequest.h | 12 +- .../mse/model/ListEurekaServicesRequest.h | 6 +- .../model/ListExportZookeeperDataRequest.h | 54 + .../mse/model/ListExportZookeeperDataResult.h | 73 + .../mse/model/ListFlowRulesRequest.h | 66 + .../mse/model/ListFlowRulesResult.h | 82 ++ .../model/ListGatewayAuthConsumerRequest.h | 63 + .../ListGatewayAuthConsumerResourceRequest.h | 63 + .../ListGatewayAuthConsumerResourceResult.h | 83 ++ .../mse/model/ListGatewayAuthConsumerResult.h | 84 ++ .../mse/model/ListGatewayResult.h | 19 + .../mse/model/ListGatewayRouteOnAuthRequest.h | 51 + .../mse/model/ListGatewayRouteOnAuthResult.h | 80 ++ .../mse/model/ListGatewaySlbResult.h | 9 + .../mse/model/ListInstanceCountRequest.h | 12 +- .../mse/model/ListListenersByConfigRequest.h | 18 +- .../mse/model/ListListenersByIpRequest.h | 12 +- .../mse/model/ListMigrationTaskRequest.h | 6 +- .../model/ListNacosHistoryConfigsRequest.h | 18 +- .../mse/model/ListNamingTrackRequest.h | 18 +- .../mse/model/ListTagResourcesRequest.h | 18 +- .../mse/model/ListZnodeChildrenRequest.h | 6 +- ...ModifyGovernanceKubernetesClusterRequest.h | 6 +- .../mse/model/ModifyLosslessRuleRequest.h | 36 +- .../mse/model/ModifyLosslessRuleResult.h | 8 - ...OrderClusterHealthCheckRiskNoticeRequest.h | 12 +- .../model/QueryAllSwimmingLaneGroupResult.h | 45 + .../mse/model/QueryAllSwimmingLaneRequest.h | 3 + .../mse/model/QueryAllSwimmingLaneResult.h | 55 + .../mse/model/QueryClusterDetailRequest.h | 6 +- .../mse/model/QueryClusterInfoRequest.h | 18 +- .../mse/model/QueryClusterInfoResult.h | 1 + .../mse/model/QueryConfigRequest.h | 12 +- .../mse/model/QueryConfigResult.h | 2 + .../QueryGovernanceKubernetesClusterRequest.h | 6 +- .../QueryGovernanceKubernetesClusterResult.h | 4 - .../mse/model/QueryInstancesInfoRequest.h | 12 +- .../mse/model/QueryInstancesInfoResult.h | 1 + .../mse/model/QueryMonitorRequest.h | 18 +- .../mse/model/QueryNamespaceRequest.h | 51 + .../mse/model/QueryNamespaceResult.h | 64 + .../mse/model/QuerySwimmingLaneByIdRequest.h | 3 + .../mse/model/QuerySwimmingLaneByIdResult.h | 48 + .../mse/model/QueryZnodeDetailRequest.h | 12 +- .../mse/model/RemoveApplicationRequest.h | 57 + .../mse/model/RemoveApplicationResult.h | 57 + .../mse/model/RemoveAuthPolicyRequest.h | 48 + .../mse/model/RemoveAuthPolicyResult.h | 59 + .../mse/model/RestartClusterRequest.h | 12 +- .../mse/model/RetryClusterRequest.h | 6 +- .../mse/model/TagResourcesRequest.h | 12 +- .../mse/model/UntagResourcesRequest.h | 12 +- .../mse/model/UpdateAuthPolicyRequest.h | 72 + .../mse/model/UpdateAuthPolicyResult.h | 59 + .../model/UpdateCircuitBreakerRuleRequest.h | 84 ++ .../model/UpdateCircuitBreakerRuleResult.h | 74 + .../mse/model/UpdateClusterRequest.h | 6 +- .../mse/model/UpdateClusterSpecRequest.h | 3 + .../mse/model/UpdateClusterSpecResult.h | 2 + .../mse/model/UpdateConfigRequest.h | 54 +- .../mse/model/UpdateEngineNamespaceRequest.h | 12 +- .../mse/model/UpdateFlowRuleRequest.h | 69 + .../mse/model/UpdateFlowRuleResult.h | 69 + .../model/UpdateGatewayAuthConsumerRequest.h | 78 ++ ...UpdateGatewayAuthConsumerResourceRequest.h | 58 + .../UpdateGatewayAuthConsumerResourceResult.h | 65 + ...GatewayAuthConsumerResourceStatusRequest.h | 57 + ...eGatewayAuthConsumerResourceStatusResult.h | 65 + .../model/UpdateGatewayAuthConsumerResult.h | 65 + .../UpdateGatewayAuthConsumerStatusRequest.h | 54 + .../UpdateGatewayAuthConsumerStatusResult.h | 65 + .../mse/model/UpdateGatewayRouteAuthRequest.h | 60 + .../mse/model/UpdateGatewayRouteAuthResult.h | 65 + .../mse/model/UpdateGatewayRouteRequest.h | 114 +- .../mse/model/UpdateGatewayRouteResult.h | 2 + .../mse/model/UpdateImageRequest.h | 6 +- .../mse/model/UpdateNacosClusterRequest.h | 12 +- .../mse/model/UpdateNacosConfigRequest.h | 12 +- .../mse/model/UpdateNacosInstanceRequest.h | 12 +- .../mse/model/UpdateNacosServiceRequest.h | 12 +- .../mse/model/UpdateZnodeRequest.h | 6 +- .../mse/model/UpgradeClusterRequest.h | 12 +- mse/src/MseClient.cc | 1188 +++++++++++++++++ mse/src/model/AddAuthPolicyRequest.cc | 135 ++ mse/src/model/AddAuthPolicyResult.cc | 79 ++ .../model/AddGatewayAuthConsumerRequest.cc | 153 +++ mse/src/model/AddGatewayAuthConsumerResult.cc | 100 ++ mse/src/model/AddGatewayRequest.cc | 102 +- mse/src/model/AddGatewayRouteRequest.cc | 214 +-- mse/src/model/AddGatewayRouteResult.cc | 7 + mse/src/model/AddGatewaySlbRequest.cc | 14 + mse/src/model/AddMockRuleRequest.cc | 54 +- mse/src/model/ApplyTagPoliciesRequest.cc | 18 + mse/src/model/CloneNacosConfigRequest.cc | 36 +- .../model/CreateCircuitBreakerRuleRequest.cc | 171 +++ .../model/CreateCircuitBreakerRuleResult.cc | 101 ++ mse/src/model/CreateClusterRequest.cc | 163 +-- mse/src/model/CreateEngineNamespaceRequest.cc | 36 +- mse/src/model/CreateFlowRuleRequest.cc | 126 ++ mse/src/model/CreateFlowRuleResult.cc | 91 ++ mse/src/model/CreateNacosInstanceRequest.cc | 36 +- mse/src/model/CreateNacosServiceRequest.cc | 36 +- .../CreateOrUpdateSwimmingLaneGroupRequest.cc | 126 +- .../CreateOrUpdateSwimmingLaneGroupResult.cc | 84 ++ .../CreateOrUpdateSwimmingLaneRequest.cc | 143 +- .../model/CreateOrUpdateSwimmingLaneResult.cc | 105 ++ mse/src/model/CreateZnodeRequest.cc | 18 +- mse/src/model/DeleteAuthResourceRequest.cc | 18 +- .../model/DeleteCircuitBreakerRulesRequest.cc | 74 + .../model/DeleteCircuitBreakerRulesResult.cc | 80 ++ mse/src/model/DeleteEngineNamespaceRequest.cc | 18 +- mse/src/model/DeleteFlowRulesRequest.cc | 74 + mse/src/model/DeleteFlowRulesResult.cc | 80 ++ .../model/DeleteGatewayAuthConsumerRequest.cc | 63 + ...eleteGatewayAuthConsumerResourceRequest.cc | 72 + ...DeleteGatewayAuthConsumerResourceResult.cc | 100 ++ .../model/DeleteGatewayAuthConsumerResult.cc | 100 ++ mse/src/model/DeleteGatewayDomainRequest.cc | 18 +- mse/src/model/DeleteGatewaySlbRequest.cc | 9 + mse/src/model/DeleteMigrationTaskRequest.cc | 18 +- mse/src/model/DeleteNacosConfigRequest.cc | 54 +- mse/src/model/DeleteNacosConfigsRequest.cc | 18 +- mse/src/model/DeleteNacosInstanceRequest.cc | 54 +- mse/src/model/DeleteNacosServiceRequest.cc | 36 +- mse/src/model/DeleteNamespaceRequest.cc | 63 + mse/src/model/DeleteNamespaceResult.cc | 79 ++ .../model/DeleteSecurityGroupRuleRequest.cc | 18 +- mse/src/model/DeleteServiceSourceRequest.cc | 18 +- .../model/DeleteSwimmingLaneGroupRequest.cc | 27 + mse/src/model/DeleteSwimmingLaneRequest.cc | 9 + mse/src/model/DeleteZnodeRequest.cc | 18 +- mse/src/model/ExportNacosConfigRequest.cc | 55 +- mse/src/model/ExportZookeeperDataRequest.cc | 81 ++ mse/src/model/ExportZookeeperDataResult.cc | 103 ++ mse/src/model/FetchLosslessRuleListRequest.cc | 99 ++ mse/src/model/FetchLosslessRuleListResult.cc | 119 ++ .../model/GetAppMessageQueueRouteRequest.cc | 18 + mse/src/model/GetApplicationListResult.cc | 13 +- .../GetApplicationListWithMetircsResult.cc | 20 +- mse/src/model/GetEngineNamepaceRequest.cc | 18 +- .../GetGatewayAuthConsumerDetailRequest.cc | 63 + .../GetGatewayAuthConsumerDetailResult.cc | 155 +++ .../model/GetGatewayDomainDetailRequest.cc | 18 +- mse/src/model/GetGatewayResult.cc | 25 + mse/src/model/GetGatewayRouteDetailResult.cc | 2 + .../GetGovernanceKubernetesClusterRequest.cc | 18 +- mse/src/model/GetImageRequest.cc | 18 +- mse/src/model/GetImportFileUrlRequest.cc | 18 +- mse/src/model/GetKubernetesSourceRequest.cc | 9 + mse/src/model/GetLosslessRuleByAppRequest.cc | 81 ++ mse/src/model/GetLosslessRuleByAppResult.cc | 107 ++ mse/src/model/GetNacosConfigRequest.cc | 54 +- mse/src/model/GetNacosHistoryConfigRequest.cc | 36 +- mse/src/model/GetServiceListPageRequest.cc | 126 ++ mse/src/model/GetServiceListPageResult.cc | 112 ++ mse/src/model/GetServiceListenersRequest.cc | 54 +- mse/src/model/GetServiceMethodPageRequest.cc | 162 +++ mse/src/model/GetServiceMethodPageResult.cc | 124 ++ .../GetTagsBySwimmingLaneGroupIdRequest.cc | 9 + .../GetTagsBySwimmingLaneGroupIdResult.cc | 29 + mse/src/model/ImportNacosConfigRequest.cc | 36 +- mse/src/model/ImportServicesRequest.cc | 18 + mse/src/model/ImportZookeeperDataRequest.cc | 36 +- .../model/ListAnsServiceClustersRequest.cc | 11 +- mse/src/model/ListAnsServiceClustersResult.cc | 28 + mse/src/model/ListAnsServicesRequest.cc | 56 +- mse/src/model/ListAnsServicesResult.cc | 2 + .../ListAppBySwimmingLaneGroupTagRequest.cc | 27 +- .../ListApplicationsWithTagRulesRequest.cc | 19 +- .../ListApplicationsWithTagRulesResult.cc | 9 +- mse/src/model/ListAuthPolicyRequest.cc | 117 ++ mse/src/model/ListAuthPolicyResult.cc | 148 ++ .../model/ListCircuitBreakerRulesRequest.cc | 108 ++ .../model/ListCircuitBreakerRulesResult.cc | 122 ++ .../ListClusterHealthCheckTaskRequest.cc | 18 +- mse/src/model/ListClusterTypesRequest.cc | 18 +- mse/src/model/ListClustersRequest.cc | 38 +- mse/src/model/ListConfigTrackRequest.cc | 56 +- mse/src/model/ListEngineNamespacesRequest.cc | 38 +- mse/src/model/ListEngineNamespacesResult.cc | 2 + mse/src/model/ListEurekaInstancesRequest.cc | 36 +- mse/src/model/ListEurekaServicesRequest.cc | 18 +- .../model/ListExportZookeeperDataRequest.cc | 72 + .../model/ListExportZookeeperDataResult.cc | 108 ++ mse/src/model/ListFlowRulesRequest.cc | 108 ++ mse/src/model/ListFlowRulesResult.cc | 116 ++ .../model/ListGatewayAuthConsumerRequest.cc | 99 ++ .../ListGatewayAuthConsumerResourceRequest.cc | 99 ++ .../ListGatewayAuthConsumerResourceResult.cc | 127 ++ .../model/ListGatewayAuthConsumerResult.cc | 129 ++ mse/src/model/ListGatewayResult.cc | 29 + .../model/ListGatewayRouteOnAuthRequest.cc | 63 + mse/src/model/ListGatewayRouteOnAuthResult.cc | 107 ++ mse/src/model/ListGatewaySlbResult.cc | 16 + mse/src/model/ListInstanceCountRequest.cc | 36 +- mse/src/model/ListListenersByConfigRequest.cc | 54 +- mse/src/model/ListListenersByIpRequest.cc | 36 +- mse/src/model/ListMigrationTaskRequest.cc | 18 +- .../model/ListNacosHistoryConfigsRequest.cc | 54 +- mse/src/model/ListNamingTrackRequest.cc | 54 +- mse/src/model/ListTagResourcesRequest.cc | 52 +- mse/src/model/ListZkTrackRequest.cc | 2 +- mse/src/model/ListZnodeChildrenRequest.cc | 20 +- ...odifyGovernanceKubernetesClusterRequest.cc | 18 +- mse/src/model/ModifyLosslessRuleRequest.cc | 100 +- mse/src/model/ModifyLosslessRuleResult.cc | 28 - ...rderClusterHealthCheckRiskNoticeRequest.cc | 36 +- .../model/QueryAllSwimmingLaneGroupResult.cc | 110 ++ mse/src/model/QueryAllSwimmingLaneRequest.cc | 9 + mse/src/model/QueryAllSwimmingLaneResult.cc | 118 ++ mse/src/model/QueryClusterDetailRequest.cc | 18 +- mse/src/model/QueryClusterInfoRequest.cc | 54 +- mse/src/model/QueryClusterInfoResult.cc | 3 + mse/src/model/QueryConfigRequest.cc | 38 +- mse/src/model/QueryConfigResult.cc | 4 + ...QueryGovernanceKubernetesClusterRequest.cc | 18 +- .../QueryGovernanceKubernetesClusterResult.cc | 14 - mse/src/model/QueryInstancesInfoRequest.cc | 36 +- mse/src/model/QueryInstancesInfoResult.cc | 2 + mse/src/model/QueryMonitorRequest.cc | 56 +- mse/src/model/QueryNamespaceRequest.cc | 63 + mse/src/model/QueryNamespaceResult.cc | 87 ++ mse/src/model/QuerySwimmingLaneByIdRequest.cc | 9 + mse/src/model/QuerySwimmingLaneByIdResult.cc | 105 ++ mse/src/model/QueryZnodeDetailRequest.cc | 36 +- mse/src/model/RemoveApplicationRequest.cc | 81 ++ mse/src/model/RemoveApplicationResult.cc | 72 + mse/src/model/RemoveAuthPolicyRequest.cc | 54 + mse/src/model/RemoveAuthPolicyResult.cc | 79 ++ mse/src/model/RestartClusterRequest.cc | 36 +- mse/src/model/RetryClusterRequest.cc | 18 +- mse/src/model/TagResourcesRequest.cc | 46 +- mse/src/model/UntagResourcesRequest.cc | 36 +- mse/src/model/UpdateAuthPolicyRequest.cc | 126 ++ mse/src/model/UpdateAuthPolicyResult.cc | 79 ++ .../model/UpdateCircuitBreakerRuleRequest.cc | 162 +++ .../model/UpdateCircuitBreakerRuleResult.cc | 99 ++ mse/src/model/UpdateClusterRequest.cc | 18 +- mse/src/model/UpdateClusterSpecRequest.cc | 9 + mse/src/model/UpdateClusterSpecResult.cc | 7 + mse/src/model/UpdateConfigRequest.cc | 162 ++- mse/src/model/UpdateEngineNamespaceRequest.cc | 36 +- mse/src/model/UpdateFlowRuleRequest.cc | 117 ++ mse/src/model/UpdateFlowRuleResult.cc | 89 ++ .../model/UpdateGatewayAuthConsumerRequest.cc | 144 ++ ...pdateGatewayAuthConsumerResourceRequest.cc | 75 ++ ...UpdateGatewayAuthConsumerResourceResult.cc | 100 ++ ...atewayAuthConsumerResourceStatusRequest.cc | 81 ++ ...GatewayAuthConsumerResourceStatusResult.cc | 100 ++ .../model/UpdateGatewayAuthConsumerResult.cc | 100 ++ .../UpdateGatewayAuthConsumerStatusRequest.cc | 72 + .../UpdateGatewayAuthConsumerStatusResult.cc | 100 ++ .../model/UpdateGatewayRouteAuthRequest.cc | 81 ++ mse/src/model/UpdateGatewayRouteAuthResult.cc | 100 ++ mse/src/model/UpdateGatewayRouteRequest.cc | 196 +-- mse/src/model/UpdateGatewayRouteResult.cc | 7 + mse/src/model/UpdateImageRequest.cc | 18 +- mse/src/model/UpdateNacosClusterRequest.cc | 36 +- mse/src/model/UpdateNacosConfigRequest.cc | 36 +- mse/src/model/UpdateNacosInstanceRequest.cc | 36 +- mse/src/model/UpdateNacosServiceRequest.cc | 36 +- mse/src/model/UpdateZnodeRequest.cc | 18 +- mse/src/model/UpgradeClusterRequest.cc | 36 +- 363 files changed, 16314 insertions(+), 2437 deletions(-) create mode 100644 mse/include/alibabacloud/mse/model/AddAuthPolicyRequest.h create mode 100644 mse/include/alibabacloud/mse/model/AddAuthPolicyResult.h create mode 100644 mse/include/alibabacloud/mse/model/AddGatewayAuthConsumerRequest.h create mode 100644 mse/include/alibabacloud/mse/model/AddGatewayAuthConsumerResult.h create mode 100644 mse/include/alibabacloud/mse/model/CreateCircuitBreakerRuleRequest.h create mode 100644 mse/include/alibabacloud/mse/model/CreateCircuitBreakerRuleResult.h create mode 100644 mse/include/alibabacloud/mse/model/CreateFlowRuleRequest.h create mode 100644 mse/include/alibabacloud/mse/model/CreateFlowRuleResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteCircuitBreakerRulesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteCircuitBreakerRulesResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteFlowRulesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteFlowRulesResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResourceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResourceResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteNamespaceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteNamespaceResult.h create mode 100644 mse/include/alibabacloud/mse/model/ExportZookeeperDataRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ExportZookeeperDataResult.h create mode 100644 mse/include/alibabacloud/mse/model/FetchLosslessRuleListRequest.h create mode 100644 mse/include/alibabacloud/mse/model/FetchLosslessRuleListResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetGatewayAuthConsumerDetailRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetGatewayAuthConsumerDetailResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetLosslessRuleByAppRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetLosslessRuleByAppResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetServiceListPageRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetServiceListPageResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetServiceMethodPageRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetServiceMethodPageResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListAuthPolicyRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListAuthPolicyResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListCircuitBreakerRulesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListCircuitBreakerRulesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListExportZookeeperDataRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListExportZookeeperDataResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListFlowRulesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListFlowRulesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerResourceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerResourceResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewayRouteOnAuthRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewayRouteOnAuthResult.h create mode 100644 mse/include/alibabacloud/mse/model/QueryNamespaceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QueryNamespaceResult.h create mode 100644 mse/include/alibabacloud/mse/model/RemoveApplicationRequest.h create mode 100644 mse/include/alibabacloud/mse/model/RemoveApplicationResult.h create mode 100644 mse/include/alibabacloud/mse/model/RemoveAuthPolicyRequest.h create mode 100644 mse/include/alibabacloud/mse/model/RemoveAuthPolicyResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateAuthPolicyRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateAuthPolicyResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateCircuitBreakerRuleRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateCircuitBreakerRuleResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateFlowRuleRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateFlowRuleResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceStatusRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceStatusResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerStatusRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerStatusResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayRouteAuthRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayRouteAuthResult.h create mode 100644 mse/src/model/AddAuthPolicyRequest.cc create mode 100644 mse/src/model/AddAuthPolicyResult.cc create mode 100644 mse/src/model/AddGatewayAuthConsumerRequest.cc create mode 100644 mse/src/model/AddGatewayAuthConsumerResult.cc create mode 100644 mse/src/model/CreateCircuitBreakerRuleRequest.cc create mode 100644 mse/src/model/CreateCircuitBreakerRuleResult.cc create mode 100644 mse/src/model/CreateFlowRuleRequest.cc create mode 100644 mse/src/model/CreateFlowRuleResult.cc create mode 100644 mse/src/model/DeleteCircuitBreakerRulesRequest.cc create mode 100644 mse/src/model/DeleteCircuitBreakerRulesResult.cc create mode 100644 mse/src/model/DeleteFlowRulesRequest.cc create mode 100644 mse/src/model/DeleteFlowRulesResult.cc create mode 100644 mse/src/model/DeleteGatewayAuthConsumerRequest.cc create mode 100644 mse/src/model/DeleteGatewayAuthConsumerResourceRequest.cc create mode 100644 mse/src/model/DeleteGatewayAuthConsumerResourceResult.cc create mode 100644 mse/src/model/DeleteGatewayAuthConsumerResult.cc create mode 100644 mse/src/model/DeleteNamespaceRequest.cc create mode 100644 mse/src/model/DeleteNamespaceResult.cc create mode 100644 mse/src/model/ExportZookeeperDataRequest.cc create mode 100644 mse/src/model/ExportZookeeperDataResult.cc create mode 100644 mse/src/model/FetchLosslessRuleListRequest.cc create mode 100644 mse/src/model/FetchLosslessRuleListResult.cc create mode 100644 mse/src/model/GetGatewayAuthConsumerDetailRequest.cc create mode 100644 mse/src/model/GetGatewayAuthConsumerDetailResult.cc create mode 100644 mse/src/model/GetLosslessRuleByAppRequest.cc create mode 100644 mse/src/model/GetLosslessRuleByAppResult.cc create mode 100644 mse/src/model/GetServiceListPageRequest.cc create mode 100644 mse/src/model/GetServiceListPageResult.cc create mode 100644 mse/src/model/GetServiceMethodPageRequest.cc create mode 100644 mse/src/model/GetServiceMethodPageResult.cc create mode 100644 mse/src/model/ListAuthPolicyRequest.cc create mode 100644 mse/src/model/ListAuthPolicyResult.cc create mode 100644 mse/src/model/ListCircuitBreakerRulesRequest.cc create mode 100644 mse/src/model/ListCircuitBreakerRulesResult.cc create mode 100644 mse/src/model/ListExportZookeeperDataRequest.cc create mode 100644 mse/src/model/ListExportZookeeperDataResult.cc create mode 100644 mse/src/model/ListFlowRulesRequest.cc create mode 100644 mse/src/model/ListFlowRulesResult.cc create mode 100644 mse/src/model/ListGatewayAuthConsumerRequest.cc create mode 100644 mse/src/model/ListGatewayAuthConsumerResourceRequest.cc create mode 100644 mse/src/model/ListGatewayAuthConsumerResourceResult.cc create mode 100644 mse/src/model/ListGatewayAuthConsumerResult.cc create mode 100644 mse/src/model/ListGatewayRouteOnAuthRequest.cc create mode 100644 mse/src/model/ListGatewayRouteOnAuthResult.cc create mode 100644 mse/src/model/QueryNamespaceRequest.cc create mode 100644 mse/src/model/QueryNamespaceResult.cc create mode 100644 mse/src/model/RemoveApplicationRequest.cc create mode 100644 mse/src/model/RemoveApplicationResult.cc create mode 100644 mse/src/model/RemoveAuthPolicyRequest.cc create mode 100644 mse/src/model/RemoveAuthPolicyResult.cc create mode 100644 mse/src/model/UpdateAuthPolicyRequest.cc create mode 100644 mse/src/model/UpdateAuthPolicyResult.cc create mode 100644 mse/src/model/UpdateCircuitBreakerRuleRequest.cc create mode 100644 mse/src/model/UpdateCircuitBreakerRuleResult.cc create mode 100644 mse/src/model/UpdateFlowRuleRequest.cc create mode 100644 mse/src/model/UpdateFlowRuleResult.cc create mode 100644 mse/src/model/UpdateGatewayAuthConsumerRequest.cc create mode 100644 mse/src/model/UpdateGatewayAuthConsumerResourceRequest.cc create mode 100644 mse/src/model/UpdateGatewayAuthConsumerResourceResult.cc create mode 100644 mse/src/model/UpdateGatewayAuthConsumerResourceStatusRequest.cc create mode 100644 mse/src/model/UpdateGatewayAuthConsumerResourceStatusResult.cc create mode 100644 mse/src/model/UpdateGatewayAuthConsumerResult.cc create mode 100644 mse/src/model/UpdateGatewayAuthConsumerStatusRequest.cc create mode 100644 mse/src/model/UpdateGatewayAuthConsumerStatusResult.cc create mode 100644 mse/src/model/UpdateGatewayRouteAuthRequest.cc create mode 100644 mse/src/model/UpdateGatewayRouteAuthResult.cc diff --git a/VERSION b/VERSION index e671d3333..7f36e29b8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1652 \ No newline at end of file +1.36.1653 \ No newline at end of file diff --git a/mse/CMakeLists.txt b/mse/CMakeLists.txt index 7f77c6e9e..05b77e3ca 100644 --- a/mse/CMakeLists.txt +++ b/mse/CMakeLists.txt @@ -21,12 +21,16 @@ set(mse_public_header include/alibabacloud/mse/MseExport.h ) set(mse_public_header_model + include/alibabacloud/mse/model/AddAuthPolicyRequest.h + include/alibabacloud/mse/model/AddAuthPolicyResult.h include/alibabacloud/mse/model/AddAuthResourceRequest.h include/alibabacloud/mse/model/AddAuthResourceResult.h include/alibabacloud/mse/model/AddBlackWhiteListRequest.h include/alibabacloud/mse/model/AddBlackWhiteListResult.h include/alibabacloud/mse/model/AddGatewayRequest.h include/alibabacloud/mse/model/AddGatewayResult.h + include/alibabacloud/mse/model/AddGatewayAuthConsumerRequest.h + include/alibabacloud/mse/model/AddGatewayAuthConsumerResult.h include/alibabacloud/mse/model/AddGatewayDomainRequest.h include/alibabacloud/mse/model/AddGatewayDomainResult.h include/alibabacloud/mse/model/AddGatewayRouteRequest.h @@ -53,10 +57,14 @@ set(mse_public_header_model include/alibabacloud/mse/model/CloneNacosConfigResult.h include/alibabacloud/mse/model/CreateApplicationRequest.h include/alibabacloud/mse/model/CreateApplicationResult.h + include/alibabacloud/mse/model/CreateCircuitBreakerRuleRequest.h + include/alibabacloud/mse/model/CreateCircuitBreakerRuleResult.h include/alibabacloud/mse/model/CreateClusterRequest.h include/alibabacloud/mse/model/CreateClusterResult.h include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h include/alibabacloud/mse/model/CreateEngineNamespaceResult.h + include/alibabacloud/mse/model/CreateFlowRuleRequest.h + include/alibabacloud/mse/model/CreateFlowRuleResult.h include/alibabacloud/mse/model/CreateMseServiceApplicationRequest.h include/alibabacloud/mse/model/CreateMseServiceApplicationResult.h include/alibabacloud/mse/model/CreateNacosConfigRequest.h @@ -73,12 +81,20 @@ set(mse_public_header_model include/alibabacloud/mse/model/CreateZnodeResult.h include/alibabacloud/mse/model/DeleteAuthResourceRequest.h include/alibabacloud/mse/model/DeleteAuthResourceResult.h + include/alibabacloud/mse/model/DeleteCircuitBreakerRulesRequest.h + include/alibabacloud/mse/model/DeleteCircuitBreakerRulesResult.h include/alibabacloud/mse/model/DeleteClusterRequest.h include/alibabacloud/mse/model/DeleteClusterResult.h include/alibabacloud/mse/model/DeleteEngineNamespaceRequest.h include/alibabacloud/mse/model/DeleteEngineNamespaceResult.h + include/alibabacloud/mse/model/DeleteFlowRulesRequest.h + include/alibabacloud/mse/model/DeleteFlowRulesResult.h include/alibabacloud/mse/model/DeleteGatewayRequest.h include/alibabacloud/mse/model/DeleteGatewayResult.h + include/alibabacloud/mse/model/DeleteGatewayAuthConsumerRequest.h + include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResult.h + include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResourceRequest.h + include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResourceResult.h include/alibabacloud/mse/model/DeleteGatewayDomainRequest.h include/alibabacloud/mse/model/DeleteGatewayDomainResult.h include/alibabacloud/mse/model/DeleteGatewayRouteRequest.h @@ -99,6 +115,8 @@ 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/DeleteNamespaceRequest.h + include/alibabacloud/mse/model/DeleteNamespaceResult.h include/alibabacloud/mse/model/DeleteSecurityGroupRuleRequest.h include/alibabacloud/mse/model/DeleteSecurityGroupRuleResult.h include/alibabacloud/mse/model/DeleteServiceSourceRequest.h @@ -111,6 +129,10 @@ set(mse_public_header_model include/alibabacloud/mse/model/DeleteZnodeResult.h include/alibabacloud/mse/model/ExportNacosConfigRequest.h include/alibabacloud/mse/model/ExportNacosConfigResult.h + include/alibabacloud/mse/model/ExportZookeeperDataRequest.h + include/alibabacloud/mse/model/ExportZookeeperDataResult.h + include/alibabacloud/mse/model/FetchLosslessRuleListRequest.h + include/alibabacloud/mse/model/FetchLosslessRuleListResult.h include/alibabacloud/mse/model/GetAppMessageQueueRouteRequest.h include/alibabacloud/mse/model/GetAppMessageQueueRouteResult.h include/alibabacloud/mse/model/GetApplicationListRequest.h @@ -123,6 +145,8 @@ set(mse_public_header_model include/alibabacloud/mse/model/GetEngineNamepaceResult.h include/alibabacloud/mse/model/GetGatewayRequest.h include/alibabacloud/mse/model/GetGatewayResult.h + include/alibabacloud/mse/model/GetGatewayAuthConsumerDetailRequest.h + include/alibabacloud/mse/model/GetGatewayAuthConsumerDetailResult.h include/alibabacloud/mse/model/GetGatewayDomainDetailRequest.h include/alibabacloud/mse/model/GetGatewayDomainDetailResult.h include/alibabacloud/mse/model/GetGatewayOptionRequest.h @@ -139,6 +163,8 @@ set(mse_public_header_model include/alibabacloud/mse/model/GetImportFileUrlResult.h include/alibabacloud/mse/model/GetKubernetesSourceRequest.h include/alibabacloud/mse/model/GetKubernetesSourceResult.h + include/alibabacloud/mse/model/GetLosslessRuleByAppRequest.h + include/alibabacloud/mse/model/GetLosslessRuleByAppResult.h include/alibabacloud/mse/model/GetMseFeatureSwitchRequest.h include/alibabacloud/mse/model/GetMseFeatureSwitchResult.h include/alibabacloud/mse/model/GetMseSourceRequest.h @@ -155,8 +181,12 @@ set(mse_public_header_model include/alibabacloud/mse/model/GetPluginsResult.h include/alibabacloud/mse/model/GetServiceListRequest.h include/alibabacloud/mse/model/GetServiceListResult.h + include/alibabacloud/mse/model/GetServiceListPageRequest.h + include/alibabacloud/mse/model/GetServiceListPageResult.h include/alibabacloud/mse/model/GetServiceListenersRequest.h include/alibabacloud/mse/model/GetServiceListenersResult.h + include/alibabacloud/mse/model/GetServiceMethodPageRequest.h + include/alibabacloud/mse/model/GetServiceMethodPageResult.h include/alibabacloud/mse/model/GetTagsBySwimmingLaneGroupIdRequest.h include/alibabacloud/mse/model/GetTagsBySwimmingLaneGroupIdResult.h include/alibabacloud/mse/model/GetZookeeperDataImportUrlRequest.h @@ -177,6 +207,10 @@ set(mse_public_header_model include/alibabacloud/mse/model/ListAppBySwimmingLaneGroupTagResult.h include/alibabacloud/mse/model/ListApplicationsWithTagRulesRequest.h include/alibabacloud/mse/model/ListApplicationsWithTagRulesResult.h + include/alibabacloud/mse/model/ListAuthPolicyRequest.h + include/alibabacloud/mse/model/ListAuthPolicyResult.h + include/alibabacloud/mse/model/ListCircuitBreakerRulesRequest.h + include/alibabacloud/mse/model/ListCircuitBreakerRulesResult.h include/alibabacloud/mse/model/ListClusterConnectionTypesRequest.h include/alibabacloud/mse/model/ListClusterConnectionTypesResult.h include/alibabacloud/mse/model/ListClusterHealthCheckTaskRequest.h @@ -195,12 +229,22 @@ set(mse_public_header_model include/alibabacloud/mse/model/ListEurekaInstancesResult.h include/alibabacloud/mse/model/ListEurekaServicesRequest.h include/alibabacloud/mse/model/ListEurekaServicesResult.h + include/alibabacloud/mse/model/ListExportZookeeperDataRequest.h + include/alibabacloud/mse/model/ListExportZookeeperDataResult.h + include/alibabacloud/mse/model/ListFlowRulesRequest.h + include/alibabacloud/mse/model/ListFlowRulesResult.h include/alibabacloud/mse/model/ListGatewayRequest.h include/alibabacloud/mse/model/ListGatewayResult.h + include/alibabacloud/mse/model/ListGatewayAuthConsumerRequest.h + include/alibabacloud/mse/model/ListGatewayAuthConsumerResult.h + include/alibabacloud/mse/model/ListGatewayAuthConsumerResourceRequest.h + include/alibabacloud/mse/model/ListGatewayAuthConsumerResourceResult.h include/alibabacloud/mse/model/ListGatewayDomainRequest.h include/alibabacloud/mse/model/ListGatewayDomainResult.h include/alibabacloud/mse/model/ListGatewayRouteRequest.h include/alibabacloud/mse/model/ListGatewayRouteResult.h + include/alibabacloud/mse/model/ListGatewayRouteOnAuthRequest.h + include/alibabacloud/mse/model/ListGatewayRouteOnAuthResult.h include/alibabacloud/mse/model/ListGatewayServiceRequest.h include/alibabacloud/mse/model/ListGatewayServiceResult.h include/alibabacloud/mse/model/ListGatewaySlbRequest.h @@ -271,12 +315,18 @@ set(mse_public_header_model include/alibabacloud/mse/model/QueryInstancesInfoResult.h include/alibabacloud/mse/model/QueryMonitorRequest.h include/alibabacloud/mse/model/QueryMonitorResult.h + include/alibabacloud/mse/model/QueryNamespaceRequest.h + include/alibabacloud/mse/model/QueryNamespaceResult.h include/alibabacloud/mse/model/QuerySlbSpecRequest.h include/alibabacloud/mse/model/QuerySlbSpecResult.h include/alibabacloud/mse/model/QuerySwimmingLaneByIdRequest.h include/alibabacloud/mse/model/QuerySwimmingLaneByIdResult.h include/alibabacloud/mse/model/QueryZnodeDetailRequest.h include/alibabacloud/mse/model/QueryZnodeDetailResult.h + include/alibabacloud/mse/model/RemoveApplicationRequest.h + include/alibabacloud/mse/model/RemoveApplicationResult.h + include/alibabacloud/mse/model/RemoveAuthPolicyRequest.h + include/alibabacloud/mse/model/RemoveAuthPolicyResult.h include/alibabacloud/mse/model/RestartClusterRequest.h include/alibabacloud/mse/model/RestartClusterResult.h include/alibabacloud/mse/model/RetryClusterRequest.h @@ -289,8 +339,12 @@ set(mse_public_header_model include/alibabacloud/mse/model/UntagResourcesResult.h include/alibabacloud/mse/model/UpdateAclRequest.h include/alibabacloud/mse/model/UpdateAclResult.h + include/alibabacloud/mse/model/UpdateAuthPolicyRequest.h + include/alibabacloud/mse/model/UpdateAuthPolicyResult.h include/alibabacloud/mse/model/UpdateBlackWhiteListRequest.h include/alibabacloud/mse/model/UpdateBlackWhiteListResult.h + include/alibabacloud/mse/model/UpdateCircuitBreakerRuleRequest.h + include/alibabacloud/mse/model/UpdateCircuitBreakerRuleResult.h include/alibabacloud/mse/model/UpdateClusterRequest.h include/alibabacloud/mse/model/UpdateClusterResult.h include/alibabacloud/mse/model/UpdateClusterSpecRequest.h @@ -299,6 +353,16 @@ set(mse_public_header_model include/alibabacloud/mse/model/UpdateConfigResult.h include/alibabacloud/mse/model/UpdateEngineNamespaceRequest.h include/alibabacloud/mse/model/UpdateEngineNamespaceResult.h + include/alibabacloud/mse/model/UpdateFlowRuleRequest.h + include/alibabacloud/mse/model/UpdateFlowRuleResult.h + include/alibabacloud/mse/model/UpdateGatewayAuthConsumerRequest.h + include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResult.h + include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceRequest.h + include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceResult.h + include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceStatusRequest.h + include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceStatusResult.h + include/alibabacloud/mse/model/UpdateGatewayAuthConsumerStatusRequest.h + include/alibabacloud/mse/model/UpdateGatewayAuthConsumerStatusResult.h include/alibabacloud/mse/model/UpdateGatewayDomainRequest.h include/alibabacloud/mse/model/UpdateGatewayDomainResult.h include/alibabacloud/mse/model/UpdateGatewayNameRequest.h @@ -307,6 +371,8 @@ set(mse_public_header_model include/alibabacloud/mse/model/UpdateGatewayOptionResult.h include/alibabacloud/mse/model/UpdateGatewayRouteRequest.h include/alibabacloud/mse/model/UpdateGatewayRouteResult.h + include/alibabacloud/mse/model/UpdateGatewayRouteAuthRequest.h + include/alibabacloud/mse/model/UpdateGatewayRouteAuthResult.h include/alibabacloud/mse/model/UpdateGatewayRouteCORSRequest.h include/alibabacloud/mse/model/UpdateGatewayRouteCORSResult.h include/alibabacloud/mse/model/UpdateGatewayRouteHTTPRewriteRequest.h @@ -352,12 +418,16 @@ set(mse_public_header_model set(mse_src src/MseClient.cc + src/model/AddAuthPolicyRequest.cc + src/model/AddAuthPolicyResult.cc src/model/AddAuthResourceRequest.cc src/model/AddAuthResourceResult.cc src/model/AddBlackWhiteListRequest.cc src/model/AddBlackWhiteListResult.cc src/model/AddGatewayRequest.cc src/model/AddGatewayResult.cc + src/model/AddGatewayAuthConsumerRequest.cc + src/model/AddGatewayAuthConsumerResult.cc src/model/AddGatewayDomainRequest.cc src/model/AddGatewayDomainResult.cc src/model/AddGatewayRouteRequest.cc @@ -384,10 +454,14 @@ set(mse_src src/model/CloneNacosConfigResult.cc src/model/CreateApplicationRequest.cc src/model/CreateApplicationResult.cc + src/model/CreateCircuitBreakerRuleRequest.cc + src/model/CreateCircuitBreakerRuleResult.cc src/model/CreateClusterRequest.cc src/model/CreateClusterResult.cc src/model/CreateEngineNamespaceRequest.cc src/model/CreateEngineNamespaceResult.cc + src/model/CreateFlowRuleRequest.cc + src/model/CreateFlowRuleResult.cc src/model/CreateMseServiceApplicationRequest.cc src/model/CreateMseServiceApplicationResult.cc src/model/CreateNacosConfigRequest.cc @@ -404,12 +478,20 @@ set(mse_src src/model/CreateZnodeResult.cc src/model/DeleteAuthResourceRequest.cc src/model/DeleteAuthResourceResult.cc + src/model/DeleteCircuitBreakerRulesRequest.cc + src/model/DeleteCircuitBreakerRulesResult.cc src/model/DeleteClusterRequest.cc src/model/DeleteClusterResult.cc src/model/DeleteEngineNamespaceRequest.cc src/model/DeleteEngineNamespaceResult.cc + src/model/DeleteFlowRulesRequest.cc + src/model/DeleteFlowRulesResult.cc src/model/DeleteGatewayRequest.cc src/model/DeleteGatewayResult.cc + src/model/DeleteGatewayAuthConsumerRequest.cc + src/model/DeleteGatewayAuthConsumerResult.cc + src/model/DeleteGatewayAuthConsumerResourceRequest.cc + src/model/DeleteGatewayAuthConsumerResourceResult.cc src/model/DeleteGatewayDomainRequest.cc src/model/DeleteGatewayDomainResult.cc src/model/DeleteGatewayRouteRequest.cc @@ -430,6 +512,8 @@ set(mse_src src/model/DeleteNacosInstanceResult.cc src/model/DeleteNacosServiceRequest.cc src/model/DeleteNacosServiceResult.cc + src/model/DeleteNamespaceRequest.cc + src/model/DeleteNamespaceResult.cc src/model/DeleteSecurityGroupRuleRequest.cc src/model/DeleteSecurityGroupRuleResult.cc src/model/DeleteServiceSourceRequest.cc @@ -442,6 +526,10 @@ set(mse_src src/model/DeleteZnodeResult.cc src/model/ExportNacosConfigRequest.cc src/model/ExportNacosConfigResult.cc + src/model/ExportZookeeperDataRequest.cc + src/model/ExportZookeeperDataResult.cc + src/model/FetchLosslessRuleListRequest.cc + src/model/FetchLosslessRuleListResult.cc src/model/GetAppMessageQueueRouteRequest.cc src/model/GetAppMessageQueueRouteResult.cc src/model/GetApplicationListRequest.cc @@ -454,6 +542,8 @@ set(mse_src src/model/GetEngineNamepaceResult.cc src/model/GetGatewayRequest.cc src/model/GetGatewayResult.cc + src/model/GetGatewayAuthConsumerDetailRequest.cc + src/model/GetGatewayAuthConsumerDetailResult.cc src/model/GetGatewayDomainDetailRequest.cc src/model/GetGatewayDomainDetailResult.cc src/model/GetGatewayOptionRequest.cc @@ -470,6 +560,8 @@ set(mse_src src/model/GetImportFileUrlResult.cc src/model/GetKubernetesSourceRequest.cc src/model/GetKubernetesSourceResult.cc + src/model/GetLosslessRuleByAppRequest.cc + src/model/GetLosslessRuleByAppResult.cc src/model/GetMseFeatureSwitchRequest.cc src/model/GetMseFeatureSwitchResult.cc src/model/GetMseSourceRequest.cc @@ -486,8 +578,12 @@ set(mse_src src/model/GetPluginsResult.cc src/model/GetServiceListRequest.cc src/model/GetServiceListResult.cc + src/model/GetServiceListPageRequest.cc + src/model/GetServiceListPageResult.cc src/model/GetServiceListenersRequest.cc src/model/GetServiceListenersResult.cc + src/model/GetServiceMethodPageRequest.cc + src/model/GetServiceMethodPageResult.cc src/model/GetTagsBySwimmingLaneGroupIdRequest.cc src/model/GetTagsBySwimmingLaneGroupIdResult.cc src/model/GetZookeeperDataImportUrlRequest.cc @@ -508,6 +604,10 @@ set(mse_src src/model/ListAppBySwimmingLaneGroupTagResult.cc src/model/ListApplicationsWithTagRulesRequest.cc src/model/ListApplicationsWithTagRulesResult.cc + src/model/ListAuthPolicyRequest.cc + src/model/ListAuthPolicyResult.cc + src/model/ListCircuitBreakerRulesRequest.cc + src/model/ListCircuitBreakerRulesResult.cc src/model/ListClusterConnectionTypesRequest.cc src/model/ListClusterConnectionTypesResult.cc src/model/ListClusterHealthCheckTaskRequest.cc @@ -526,12 +626,22 @@ set(mse_src src/model/ListEurekaInstancesResult.cc src/model/ListEurekaServicesRequest.cc src/model/ListEurekaServicesResult.cc + src/model/ListExportZookeeperDataRequest.cc + src/model/ListExportZookeeperDataResult.cc + src/model/ListFlowRulesRequest.cc + src/model/ListFlowRulesResult.cc src/model/ListGatewayRequest.cc src/model/ListGatewayResult.cc + src/model/ListGatewayAuthConsumerRequest.cc + src/model/ListGatewayAuthConsumerResult.cc + src/model/ListGatewayAuthConsumerResourceRequest.cc + src/model/ListGatewayAuthConsumerResourceResult.cc src/model/ListGatewayDomainRequest.cc src/model/ListGatewayDomainResult.cc src/model/ListGatewayRouteRequest.cc src/model/ListGatewayRouteResult.cc + src/model/ListGatewayRouteOnAuthRequest.cc + src/model/ListGatewayRouteOnAuthResult.cc src/model/ListGatewayServiceRequest.cc src/model/ListGatewayServiceResult.cc src/model/ListGatewaySlbRequest.cc @@ -602,12 +712,18 @@ set(mse_src src/model/QueryInstancesInfoResult.cc src/model/QueryMonitorRequest.cc src/model/QueryMonitorResult.cc + src/model/QueryNamespaceRequest.cc + src/model/QueryNamespaceResult.cc src/model/QuerySlbSpecRequest.cc src/model/QuerySlbSpecResult.cc src/model/QuerySwimmingLaneByIdRequest.cc src/model/QuerySwimmingLaneByIdResult.cc src/model/QueryZnodeDetailRequest.cc src/model/QueryZnodeDetailResult.cc + src/model/RemoveApplicationRequest.cc + src/model/RemoveApplicationResult.cc + src/model/RemoveAuthPolicyRequest.cc + src/model/RemoveAuthPolicyResult.cc src/model/RestartClusterRequest.cc src/model/RestartClusterResult.cc src/model/RetryClusterRequest.cc @@ -620,8 +736,12 @@ set(mse_src src/model/UntagResourcesResult.cc src/model/UpdateAclRequest.cc src/model/UpdateAclResult.cc + src/model/UpdateAuthPolicyRequest.cc + src/model/UpdateAuthPolicyResult.cc src/model/UpdateBlackWhiteListRequest.cc src/model/UpdateBlackWhiteListResult.cc + src/model/UpdateCircuitBreakerRuleRequest.cc + src/model/UpdateCircuitBreakerRuleResult.cc src/model/UpdateClusterRequest.cc src/model/UpdateClusterResult.cc src/model/UpdateClusterSpecRequest.cc @@ -630,6 +750,16 @@ set(mse_src src/model/UpdateConfigResult.cc src/model/UpdateEngineNamespaceRequest.cc src/model/UpdateEngineNamespaceResult.cc + src/model/UpdateFlowRuleRequest.cc + src/model/UpdateFlowRuleResult.cc + src/model/UpdateGatewayAuthConsumerRequest.cc + src/model/UpdateGatewayAuthConsumerResult.cc + src/model/UpdateGatewayAuthConsumerResourceRequest.cc + src/model/UpdateGatewayAuthConsumerResourceResult.cc + src/model/UpdateGatewayAuthConsumerResourceStatusRequest.cc + src/model/UpdateGatewayAuthConsumerResourceStatusResult.cc + src/model/UpdateGatewayAuthConsumerStatusRequest.cc + src/model/UpdateGatewayAuthConsumerStatusResult.cc src/model/UpdateGatewayDomainRequest.cc src/model/UpdateGatewayDomainResult.cc src/model/UpdateGatewayNameRequest.cc @@ -638,6 +768,8 @@ set(mse_src src/model/UpdateGatewayOptionResult.cc src/model/UpdateGatewayRouteRequest.cc src/model/UpdateGatewayRouteResult.cc + src/model/UpdateGatewayRouteAuthRequest.cc + src/model/UpdateGatewayRouteAuthResult.cc src/model/UpdateGatewayRouteCORSRequest.cc src/model/UpdateGatewayRouteCORSResult.cc src/model/UpdateGatewayRouteHTTPRewriteRequest.cc diff --git a/mse/include/alibabacloud/mse/MseClient.h b/mse/include/alibabacloud/mse/MseClient.h index f68e5277b..932a88378 100644 --- a/mse/include/alibabacloud/mse/MseClient.h +++ b/mse/include/alibabacloud/mse/MseClient.h @@ -22,12 +22,16 @@ #include #include #include "MseExport.h" +#include "model/AddAuthPolicyRequest.h" +#include "model/AddAuthPolicyResult.h" #include "model/AddAuthResourceRequest.h" #include "model/AddAuthResourceResult.h" #include "model/AddBlackWhiteListRequest.h" #include "model/AddBlackWhiteListResult.h" #include "model/AddGatewayRequest.h" #include "model/AddGatewayResult.h" +#include "model/AddGatewayAuthConsumerRequest.h" +#include "model/AddGatewayAuthConsumerResult.h" #include "model/AddGatewayDomainRequest.h" #include "model/AddGatewayDomainResult.h" #include "model/AddGatewayRouteRequest.h" @@ -54,10 +58,14 @@ #include "model/CloneNacosConfigResult.h" #include "model/CreateApplicationRequest.h" #include "model/CreateApplicationResult.h" +#include "model/CreateCircuitBreakerRuleRequest.h" +#include "model/CreateCircuitBreakerRuleResult.h" #include "model/CreateClusterRequest.h" #include "model/CreateClusterResult.h" #include "model/CreateEngineNamespaceRequest.h" #include "model/CreateEngineNamespaceResult.h" +#include "model/CreateFlowRuleRequest.h" +#include "model/CreateFlowRuleResult.h" #include "model/CreateMseServiceApplicationRequest.h" #include "model/CreateMseServiceApplicationResult.h" #include "model/CreateNacosConfigRequest.h" @@ -74,12 +82,20 @@ #include "model/CreateZnodeResult.h" #include "model/DeleteAuthResourceRequest.h" #include "model/DeleteAuthResourceResult.h" +#include "model/DeleteCircuitBreakerRulesRequest.h" +#include "model/DeleteCircuitBreakerRulesResult.h" #include "model/DeleteClusterRequest.h" #include "model/DeleteClusterResult.h" #include "model/DeleteEngineNamespaceRequest.h" #include "model/DeleteEngineNamespaceResult.h" +#include "model/DeleteFlowRulesRequest.h" +#include "model/DeleteFlowRulesResult.h" #include "model/DeleteGatewayRequest.h" #include "model/DeleteGatewayResult.h" +#include "model/DeleteGatewayAuthConsumerRequest.h" +#include "model/DeleteGatewayAuthConsumerResult.h" +#include "model/DeleteGatewayAuthConsumerResourceRequest.h" +#include "model/DeleteGatewayAuthConsumerResourceResult.h" #include "model/DeleteGatewayDomainRequest.h" #include "model/DeleteGatewayDomainResult.h" #include "model/DeleteGatewayRouteRequest.h" @@ -100,6 +116,8 @@ #include "model/DeleteNacosInstanceResult.h" #include "model/DeleteNacosServiceRequest.h" #include "model/DeleteNacosServiceResult.h" +#include "model/DeleteNamespaceRequest.h" +#include "model/DeleteNamespaceResult.h" #include "model/DeleteSecurityGroupRuleRequest.h" #include "model/DeleteSecurityGroupRuleResult.h" #include "model/DeleteServiceSourceRequest.h" @@ -112,6 +130,10 @@ #include "model/DeleteZnodeResult.h" #include "model/ExportNacosConfigRequest.h" #include "model/ExportNacosConfigResult.h" +#include "model/ExportZookeeperDataRequest.h" +#include "model/ExportZookeeperDataResult.h" +#include "model/FetchLosslessRuleListRequest.h" +#include "model/FetchLosslessRuleListResult.h" #include "model/GetAppMessageQueueRouteRequest.h" #include "model/GetAppMessageQueueRouteResult.h" #include "model/GetApplicationListRequest.h" @@ -124,6 +146,8 @@ #include "model/GetEngineNamepaceResult.h" #include "model/GetGatewayRequest.h" #include "model/GetGatewayResult.h" +#include "model/GetGatewayAuthConsumerDetailRequest.h" +#include "model/GetGatewayAuthConsumerDetailResult.h" #include "model/GetGatewayDomainDetailRequest.h" #include "model/GetGatewayDomainDetailResult.h" #include "model/GetGatewayOptionRequest.h" @@ -140,6 +164,8 @@ #include "model/GetImportFileUrlResult.h" #include "model/GetKubernetesSourceRequest.h" #include "model/GetKubernetesSourceResult.h" +#include "model/GetLosslessRuleByAppRequest.h" +#include "model/GetLosslessRuleByAppResult.h" #include "model/GetMseFeatureSwitchRequest.h" #include "model/GetMseFeatureSwitchResult.h" #include "model/GetMseSourceRequest.h" @@ -156,8 +182,12 @@ #include "model/GetPluginsResult.h" #include "model/GetServiceListRequest.h" #include "model/GetServiceListResult.h" +#include "model/GetServiceListPageRequest.h" +#include "model/GetServiceListPageResult.h" #include "model/GetServiceListenersRequest.h" #include "model/GetServiceListenersResult.h" +#include "model/GetServiceMethodPageRequest.h" +#include "model/GetServiceMethodPageResult.h" #include "model/GetTagsBySwimmingLaneGroupIdRequest.h" #include "model/GetTagsBySwimmingLaneGroupIdResult.h" #include "model/GetZookeeperDataImportUrlRequest.h" @@ -178,6 +208,10 @@ #include "model/ListAppBySwimmingLaneGroupTagResult.h" #include "model/ListApplicationsWithTagRulesRequest.h" #include "model/ListApplicationsWithTagRulesResult.h" +#include "model/ListAuthPolicyRequest.h" +#include "model/ListAuthPolicyResult.h" +#include "model/ListCircuitBreakerRulesRequest.h" +#include "model/ListCircuitBreakerRulesResult.h" #include "model/ListClusterConnectionTypesRequest.h" #include "model/ListClusterConnectionTypesResult.h" #include "model/ListClusterHealthCheckTaskRequest.h" @@ -196,12 +230,22 @@ #include "model/ListEurekaInstancesResult.h" #include "model/ListEurekaServicesRequest.h" #include "model/ListEurekaServicesResult.h" +#include "model/ListExportZookeeperDataRequest.h" +#include "model/ListExportZookeeperDataResult.h" +#include "model/ListFlowRulesRequest.h" +#include "model/ListFlowRulesResult.h" #include "model/ListGatewayRequest.h" #include "model/ListGatewayResult.h" +#include "model/ListGatewayAuthConsumerRequest.h" +#include "model/ListGatewayAuthConsumerResult.h" +#include "model/ListGatewayAuthConsumerResourceRequest.h" +#include "model/ListGatewayAuthConsumerResourceResult.h" #include "model/ListGatewayDomainRequest.h" #include "model/ListGatewayDomainResult.h" #include "model/ListGatewayRouteRequest.h" #include "model/ListGatewayRouteResult.h" +#include "model/ListGatewayRouteOnAuthRequest.h" +#include "model/ListGatewayRouteOnAuthResult.h" #include "model/ListGatewayServiceRequest.h" #include "model/ListGatewayServiceResult.h" #include "model/ListGatewaySlbRequest.h" @@ -272,12 +316,18 @@ #include "model/QueryInstancesInfoResult.h" #include "model/QueryMonitorRequest.h" #include "model/QueryMonitorResult.h" +#include "model/QueryNamespaceRequest.h" +#include "model/QueryNamespaceResult.h" #include "model/QuerySlbSpecRequest.h" #include "model/QuerySlbSpecResult.h" #include "model/QuerySwimmingLaneByIdRequest.h" #include "model/QuerySwimmingLaneByIdResult.h" #include "model/QueryZnodeDetailRequest.h" #include "model/QueryZnodeDetailResult.h" +#include "model/RemoveApplicationRequest.h" +#include "model/RemoveApplicationResult.h" +#include "model/RemoveAuthPolicyRequest.h" +#include "model/RemoveAuthPolicyResult.h" #include "model/RestartClusterRequest.h" #include "model/RestartClusterResult.h" #include "model/RetryClusterRequest.h" @@ -290,8 +340,12 @@ #include "model/UntagResourcesResult.h" #include "model/UpdateAclRequest.h" #include "model/UpdateAclResult.h" +#include "model/UpdateAuthPolicyRequest.h" +#include "model/UpdateAuthPolicyResult.h" #include "model/UpdateBlackWhiteListRequest.h" #include "model/UpdateBlackWhiteListResult.h" +#include "model/UpdateCircuitBreakerRuleRequest.h" +#include "model/UpdateCircuitBreakerRuleResult.h" #include "model/UpdateClusterRequest.h" #include "model/UpdateClusterResult.h" #include "model/UpdateClusterSpecRequest.h" @@ -300,6 +354,16 @@ #include "model/UpdateConfigResult.h" #include "model/UpdateEngineNamespaceRequest.h" #include "model/UpdateEngineNamespaceResult.h" +#include "model/UpdateFlowRuleRequest.h" +#include "model/UpdateFlowRuleResult.h" +#include "model/UpdateGatewayAuthConsumerRequest.h" +#include "model/UpdateGatewayAuthConsumerResult.h" +#include "model/UpdateGatewayAuthConsumerResourceRequest.h" +#include "model/UpdateGatewayAuthConsumerResourceResult.h" +#include "model/UpdateGatewayAuthConsumerResourceStatusRequest.h" +#include "model/UpdateGatewayAuthConsumerResourceStatusResult.h" +#include "model/UpdateGatewayAuthConsumerStatusRequest.h" +#include "model/UpdateGatewayAuthConsumerStatusResult.h" #include "model/UpdateGatewayDomainRequest.h" #include "model/UpdateGatewayDomainResult.h" #include "model/UpdateGatewayNameRequest.h" @@ -308,6 +372,8 @@ #include "model/UpdateGatewayOptionResult.h" #include "model/UpdateGatewayRouteRequest.h" #include "model/UpdateGatewayRouteResult.h" +#include "model/UpdateGatewayRouteAuthRequest.h" +#include "model/UpdateGatewayRouteAuthResult.h" #include "model/UpdateGatewayRouteCORSRequest.h" #include "model/UpdateGatewayRouteCORSResult.h" #include "model/UpdateGatewayRouteHTTPRewriteRequest.h" @@ -359,6 +425,9 @@ namespace AlibabaCloud class ALIBABACLOUD_MSE_EXPORT MseClient : public RpcServiceClient { public: + typedef Outcome AddAuthPolicyOutcome; + typedef std::future AddAuthPolicyOutcomeCallable; + typedef std::function&)> AddAuthPolicyAsyncHandler; typedef Outcome AddAuthResourceOutcome; typedef std::future AddAuthResourceOutcomeCallable; typedef std::function&)> AddAuthResourceAsyncHandler; @@ -368,6 +437,9 @@ namespace AlibabaCloud typedef Outcome AddGatewayOutcome; typedef std::future AddGatewayOutcomeCallable; typedef std::function&)> AddGatewayAsyncHandler; + typedef Outcome AddGatewayAuthConsumerOutcome; + typedef std::future AddGatewayAuthConsumerOutcomeCallable; + typedef std::function&)> AddGatewayAuthConsumerAsyncHandler; typedef Outcome AddGatewayDomainOutcome; typedef std::future AddGatewayDomainOutcomeCallable; typedef std::function&)> AddGatewayDomainAsyncHandler; @@ -407,12 +479,18 @@ namespace AlibabaCloud typedef Outcome CreateApplicationOutcome; typedef std::future CreateApplicationOutcomeCallable; typedef std::function&)> CreateApplicationAsyncHandler; + typedef Outcome CreateCircuitBreakerRuleOutcome; + typedef std::future CreateCircuitBreakerRuleOutcomeCallable; + typedef std::function&)> CreateCircuitBreakerRuleAsyncHandler; typedef Outcome CreateClusterOutcome; typedef std::future CreateClusterOutcomeCallable; typedef std::function&)> CreateClusterAsyncHandler; typedef Outcome CreateEngineNamespaceOutcome; typedef std::future CreateEngineNamespaceOutcomeCallable; typedef std::function&)> CreateEngineNamespaceAsyncHandler; + typedef Outcome CreateFlowRuleOutcome; + typedef std::future CreateFlowRuleOutcomeCallable; + typedef std::function&)> CreateFlowRuleAsyncHandler; typedef Outcome CreateMseServiceApplicationOutcome; typedef std::future CreateMseServiceApplicationOutcomeCallable; typedef std::function&)> CreateMseServiceApplicationAsyncHandler; @@ -437,15 +515,27 @@ namespace AlibabaCloud typedef Outcome DeleteAuthResourceOutcome; typedef std::future DeleteAuthResourceOutcomeCallable; typedef std::function&)> DeleteAuthResourceAsyncHandler; + typedef Outcome DeleteCircuitBreakerRulesOutcome; + typedef std::future DeleteCircuitBreakerRulesOutcomeCallable; + typedef std::function&)> DeleteCircuitBreakerRulesAsyncHandler; typedef Outcome DeleteClusterOutcome; typedef std::future DeleteClusterOutcomeCallable; typedef std::function&)> DeleteClusterAsyncHandler; typedef Outcome DeleteEngineNamespaceOutcome; typedef std::future DeleteEngineNamespaceOutcomeCallable; typedef std::function&)> DeleteEngineNamespaceAsyncHandler; + typedef Outcome DeleteFlowRulesOutcome; + typedef std::future DeleteFlowRulesOutcomeCallable; + typedef std::function&)> DeleteFlowRulesAsyncHandler; typedef Outcome DeleteGatewayOutcome; typedef std::future DeleteGatewayOutcomeCallable; typedef std::function&)> DeleteGatewayAsyncHandler; + typedef Outcome DeleteGatewayAuthConsumerOutcome; + typedef std::future DeleteGatewayAuthConsumerOutcomeCallable; + typedef std::function&)> DeleteGatewayAuthConsumerAsyncHandler; + typedef Outcome DeleteGatewayAuthConsumerResourceOutcome; + typedef std::future DeleteGatewayAuthConsumerResourceOutcomeCallable; + typedef std::function&)> DeleteGatewayAuthConsumerResourceAsyncHandler; typedef Outcome DeleteGatewayDomainOutcome; typedef std::future DeleteGatewayDomainOutcomeCallable; typedef std::function&)> DeleteGatewayDomainAsyncHandler; @@ -476,6 +566,9 @@ namespace AlibabaCloud typedef Outcome DeleteNacosServiceOutcome; typedef std::future DeleteNacosServiceOutcomeCallable; typedef std::function&)> DeleteNacosServiceAsyncHandler; + typedef Outcome DeleteNamespaceOutcome; + typedef std::future DeleteNamespaceOutcomeCallable; + typedef std::function&)> DeleteNamespaceAsyncHandler; typedef Outcome DeleteSecurityGroupRuleOutcome; typedef std::future DeleteSecurityGroupRuleOutcomeCallable; typedef std::function&)> DeleteSecurityGroupRuleAsyncHandler; @@ -494,6 +587,12 @@ namespace AlibabaCloud typedef Outcome ExportNacosConfigOutcome; typedef std::future ExportNacosConfigOutcomeCallable; typedef std::function&)> ExportNacosConfigAsyncHandler; + typedef Outcome ExportZookeeperDataOutcome; + typedef std::future ExportZookeeperDataOutcomeCallable; + typedef std::function&)> ExportZookeeperDataAsyncHandler; + typedef Outcome FetchLosslessRuleListOutcome; + typedef std::future FetchLosslessRuleListOutcomeCallable; + typedef std::function&)> FetchLosslessRuleListAsyncHandler; typedef Outcome GetAppMessageQueueRouteOutcome; typedef std::future GetAppMessageQueueRouteOutcomeCallable; typedef std::function&)> GetAppMessageQueueRouteAsyncHandler; @@ -512,6 +611,9 @@ namespace AlibabaCloud typedef Outcome GetGatewayOutcome; typedef std::future GetGatewayOutcomeCallable; typedef std::function&)> GetGatewayAsyncHandler; + typedef Outcome GetGatewayAuthConsumerDetailOutcome; + typedef std::future GetGatewayAuthConsumerDetailOutcomeCallable; + typedef std::function&)> GetGatewayAuthConsumerDetailAsyncHandler; typedef Outcome GetGatewayDomainDetailOutcome; typedef std::future GetGatewayDomainDetailOutcomeCallable; typedef std::function&)> GetGatewayDomainDetailAsyncHandler; @@ -536,6 +638,9 @@ namespace AlibabaCloud typedef Outcome GetKubernetesSourceOutcome; typedef std::future GetKubernetesSourceOutcomeCallable; typedef std::function&)> GetKubernetesSourceAsyncHandler; + typedef Outcome GetLosslessRuleByAppOutcome; + typedef std::future GetLosslessRuleByAppOutcomeCallable; + typedef std::function&)> GetLosslessRuleByAppAsyncHandler; typedef Outcome GetMseFeatureSwitchOutcome; typedef std::future GetMseFeatureSwitchOutcomeCallable; typedef std::function&)> GetMseFeatureSwitchAsyncHandler; @@ -560,9 +665,15 @@ namespace AlibabaCloud typedef Outcome GetServiceListOutcome; typedef std::future GetServiceListOutcomeCallable; typedef std::function&)> GetServiceListAsyncHandler; + typedef Outcome GetServiceListPageOutcome; + typedef std::future GetServiceListPageOutcomeCallable; + typedef std::function&)> GetServiceListPageAsyncHandler; typedef Outcome GetServiceListenersOutcome; typedef std::future GetServiceListenersOutcomeCallable; typedef std::function&)> GetServiceListenersAsyncHandler; + typedef Outcome GetServiceMethodPageOutcome; + typedef std::future GetServiceMethodPageOutcomeCallable; + typedef std::function&)> GetServiceMethodPageAsyncHandler; typedef Outcome GetTagsBySwimmingLaneGroupIdOutcome; typedef std::future GetTagsBySwimmingLaneGroupIdOutcomeCallable; typedef std::function&)> GetTagsBySwimmingLaneGroupIdAsyncHandler; @@ -593,6 +704,12 @@ namespace AlibabaCloud typedef Outcome ListApplicationsWithTagRulesOutcome; typedef std::future ListApplicationsWithTagRulesOutcomeCallable; typedef std::function&)> ListApplicationsWithTagRulesAsyncHandler; + typedef Outcome ListAuthPolicyOutcome; + typedef std::future ListAuthPolicyOutcomeCallable; + typedef std::function&)> ListAuthPolicyAsyncHandler; + typedef Outcome ListCircuitBreakerRulesOutcome; + typedef std::future ListCircuitBreakerRulesOutcomeCallable; + typedef std::function&)> ListCircuitBreakerRulesAsyncHandler; typedef Outcome ListClusterConnectionTypesOutcome; typedef std::future ListClusterConnectionTypesOutcomeCallable; typedef std::function&)> ListClusterConnectionTypesAsyncHandler; @@ -620,15 +737,30 @@ namespace AlibabaCloud typedef Outcome ListEurekaServicesOutcome; typedef std::future ListEurekaServicesOutcomeCallable; typedef std::function&)> ListEurekaServicesAsyncHandler; + typedef Outcome ListExportZookeeperDataOutcome; + typedef std::future ListExportZookeeperDataOutcomeCallable; + typedef std::function&)> ListExportZookeeperDataAsyncHandler; + typedef Outcome ListFlowRulesOutcome; + typedef std::future ListFlowRulesOutcomeCallable; + typedef std::function&)> ListFlowRulesAsyncHandler; typedef Outcome ListGatewayOutcome; typedef std::future ListGatewayOutcomeCallable; typedef std::function&)> ListGatewayAsyncHandler; + typedef Outcome ListGatewayAuthConsumerOutcome; + typedef std::future ListGatewayAuthConsumerOutcomeCallable; + typedef std::function&)> ListGatewayAuthConsumerAsyncHandler; + typedef Outcome ListGatewayAuthConsumerResourceOutcome; + typedef std::future ListGatewayAuthConsumerResourceOutcomeCallable; + typedef std::function&)> ListGatewayAuthConsumerResourceAsyncHandler; typedef Outcome ListGatewayDomainOutcome; typedef std::future ListGatewayDomainOutcomeCallable; typedef std::function&)> ListGatewayDomainAsyncHandler; typedef Outcome ListGatewayRouteOutcome; typedef std::future ListGatewayRouteOutcomeCallable; typedef std::function&)> ListGatewayRouteAsyncHandler; + typedef Outcome ListGatewayRouteOnAuthOutcome; + typedef std::future ListGatewayRouteOnAuthOutcomeCallable; + typedef std::function&)> ListGatewayRouteOnAuthAsyncHandler; typedef Outcome ListGatewayServiceOutcome; typedef std::future ListGatewayServiceOutcomeCallable; typedef std::function&)> ListGatewayServiceAsyncHandler; @@ -734,6 +866,9 @@ namespace AlibabaCloud typedef Outcome QueryMonitorOutcome; typedef std::future QueryMonitorOutcomeCallable; typedef std::function&)> QueryMonitorAsyncHandler; + typedef Outcome QueryNamespaceOutcome; + typedef std::future QueryNamespaceOutcomeCallable; + typedef std::function&)> QueryNamespaceAsyncHandler; typedef Outcome QuerySlbSpecOutcome; typedef std::future QuerySlbSpecOutcomeCallable; typedef std::function&)> QuerySlbSpecAsyncHandler; @@ -743,6 +878,12 @@ namespace AlibabaCloud typedef Outcome QueryZnodeDetailOutcome; typedef std::future QueryZnodeDetailOutcomeCallable; typedef std::function&)> QueryZnodeDetailAsyncHandler; + typedef Outcome RemoveApplicationOutcome; + typedef std::future RemoveApplicationOutcomeCallable; + typedef std::function&)> RemoveApplicationAsyncHandler; + typedef Outcome RemoveAuthPolicyOutcome; + typedef std::future RemoveAuthPolicyOutcomeCallable; + typedef std::function&)> RemoveAuthPolicyAsyncHandler; typedef Outcome RestartClusterOutcome; typedef std::future RestartClusterOutcomeCallable; typedef std::function&)> RestartClusterAsyncHandler; @@ -761,9 +902,15 @@ namespace AlibabaCloud typedef Outcome UpdateAclOutcome; typedef std::future UpdateAclOutcomeCallable; typedef std::function&)> UpdateAclAsyncHandler; + typedef Outcome UpdateAuthPolicyOutcome; + typedef std::future UpdateAuthPolicyOutcomeCallable; + typedef std::function&)> UpdateAuthPolicyAsyncHandler; typedef Outcome UpdateBlackWhiteListOutcome; typedef std::future UpdateBlackWhiteListOutcomeCallable; typedef std::function&)> UpdateBlackWhiteListAsyncHandler; + typedef Outcome UpdateCircuitBreakerRuleOutcome; + typedef std::future UpdateCircuitBreakerRuleOutcomeCallable; + typedef std::function&)> UpdateCircuitBreakerRuleAsyncHandler; typedef Outcome UpdateClusterOutcome; typedef std::future UpdateClusterOutcomeCallable; typedef std::function&)> UpdateClusterAsyncHandler; @@ -776,6 +923,21 @@ namespace AlibabaCloud typedef Outcome UpdateEngineNamespaceOutcome; typedef std::future UpdateEngineNamespaceOutcomeCallable; typedef std::function&)> UpdateEngineNamespaceAsyncHandler; + typedef Outcome UpdateFlowRuleOutcome; + typedef std::future UpdateFlowRuleOutcomeCallable; + typedef std::function&)> UpdateFlowRuleAsyncHandler; + typedef Outcome UpdateGatewayAuthConsumerOutcome; + typedef std::future UpdateGatewayAuthConsumerOutcomeCallable; + typedef std::function&)> UpdateGatewayAuthConsumerAsyncHandler; + typedef Outcome UpdateGatewayAuthConsumerResourceOutcome; + typedef std::future UpdateGatewayAuthConsumerResourceOutcomeCallable; + typedef std::function&)> UpdateGatewayAuthConsumerResourceAsyncHandler; + typedef Outcome UpdateGatewayAuthConsumerResourceStatusOutcome; + typedef std::future UpdateGatewayAuthConsumerResourceStatusOutcomeCallable; + typedef std::function&)> UpdateGatewayAuthConsumerResourceStatusAsyncHandler; + typedef Outcome UpdateGatewayAuthConsumerStatusOutcome; + typedef std::future UpdateGatewayAuthConsumerStatusOutcomeCallable; + typedef std::function&)> UpdateGatewayAuthConsumerStatusAsyncHandler; typedef Outcome UpdateGatewayDomainOutcome; typedef std::future UpdateGatewayDomainOutcomeCallable; typedef std::function&)> UpdateGatewayDomainAsyncHandler; @@ -788,6 +950,9 @@ namespace AlibabaCloud typedef Outcome UpdateGatewayRouteOutcome; typedef std::future UpdateGatewayRouteOutcomeCallable; typedef std::function&)> UpdateGatewayRouteAsyncHandler; + typedef Outcome UpdateGatewayRouteAuthOutcome; + typedef std::future UpdateGatewayRouteAuthOutcomeCallable; + typedef std::function&)> UpdateGatewayRouteAuthAsyncHandler; typedef Outcome UpdateGatewayRouteCORSOutcome; typedef std::future UpdateGatewayRouteCORSOutcomeCallable; typedef std::function&)> UpdateGatewayRouteCORSAsyncHandler; @@ -856,6 +1021,9 @@ namespace AlibabaCloud MseClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); MseClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~MseClient(); + AddAuthPolicyOutcome addAuthPolicy(const Model::AddAuthPolicyRequest &request)const; + void addAuthPolicyAsync(const Model::AddAuthPolicyRequest& request, const AddAuthPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddAuthPolicyOutcomeCallable addAuthPolicyCallable(const Model::AddAuthPolicyRequest& request) const; AddAuthResourceOutcome addAuthResource(const Model::AddAuthResourceRequest &request)const; void addAuthResourceAsync(const Model::AddAuthResourceRequest& request, const AddAuthResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddAuthResourceOutcomeCallable addAuthResourceCallable(const Model::AddAuthResourceRequest& request) const; @@ -865,6 +1033,9 @@ namespace AlibabaCloud AddGatewayOutcome addGateway(const Model::AddGatewayRequest &request)const; void addGatewayAsync(const Model::AddGatewayRequest& request, const AddGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddGatewayOutcomeCallable addGatewayCallable(const Model::AddGatewayRequest& request) const; + AddGatewayAuthConsumerOutcome addGatewayAuthConsumer(const Model::AddGatewayAuthConsumerRequest &request)const; + void addGatewayAuthConsumerAsync(const Model::AddGatewayAuthConsumerRequest& request, const AddGatewayAuthConsumerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddGatewayAuthConsumerOutcomeCallable addGatewayAuthConsumerCallable(const Model::AddGatewayAuthConsumerRequest& request) const; AddGatewayDomainOutcome addGatewayDomain(const Model::AddGatewayDomainRequest &request)const; void addGatewayDomainAsync(const Model::AddGatewayDomainRequest& request, const AddGatewayDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddGatewayDomainOutcomeCallable addGatewayDomainCallable(const Model::AddGatewayDomainRequest& request) const; @@ -904,12 +1075,18 @@ namespace AlibabaCloud 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; + CreateCircuitBreakerRuleOutcome createCircuitBreakerRule(const Model::CreateCircuitBreakerRuleRequest &request)const; + void createCircuitBreakerRuleAsync(const Model::CreateCircuitBreakerRuleRequest& request, const CreateCircuitBreakerRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCircuitBreakerRuleOutcomeCallable createCircuitBreakerRuleCallable(const Model::CreateCircuitBreakerRuleRequest& request) const; CreateClusterOutcome createCluster(const Model::CreateClusterRequest &request)const; void createClusterAsync(const Model::CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateClusterOutcomeCallable createClusterCallable(const Model::CreateClusterRequest& request) const; CreateEngineNamespaceOutcome createEngineNamespace(const Model::CreateEngineNamespaceRequest &request)const; void createEngineNamespaceAsync(const Model::CreateEngineNamespaceRequest& request, const CreateEngineNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateEngineNamespaceOutcomeCallable createEngineNamespaceCallable(const Model::CreateEngineNamespaceRequest& request) const; + CreateFlowRuleOutcome createFlowRule(const Model::CreateFlowRuleRequest &request)const; + void createFlowRuleAsync(const Model::CreateFlowRuleRequest& request, const CreateFlowRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFlowRuleOutcomeCallable createFlowRuleCallable(const Model::CreateFlowRuleRequest& request) const; CreateMseServiceApplicationOutcome createMseServiceApplication(const Model::CreateMseServiceApplicationRequest &request)const; void createMseServiceApplicationAsync(const Model::CreateMseServiceApplicationRequest& request, const CreateMseServiceApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateMseServiceApplicationOutcomeCallable createMseServiceApplicationCallable(const Model::CreateMseServiceApplicationRequest& request) const; @@ -934,15 +1111,27 @@ namespace AlibabaCloud 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; + DeleteCircuitBreakerRulesOutcome deleteCircuitBreakerRules(const Model::DeleteCircuitBreakerRulesRequest &request)const; + void deleteCircuitBreakerRulesAsync(const Model::DeleteCircuitBreakerRulesRequest& request, const DeleteCircuitBreakerRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCircuitBreakerRulesOutcomeCallable deleteCircuitBreakerRulesCallable(const Model::DeleteCircuitBreakerRulesRequest& request) const; DeleteClusterOutcome deleteCluster(const Model::DeleteClusterRequest &request)const; void deleteClusterAsync(const Model::DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteClusterOutcomeCallable deleteClusterCallable(const Model::DeleteClusterRequest& request) const; DeleteEngineNamespaceOutcome deleteEngineNamespace(const Model::DeleteEngineNamespaceRequest &request)const; void deleteEngineNamespaceAsync(const Model::DeleteEngineNamespaceRequest& request, const DeleteEngineNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteEngineNamespaceOutcomeCallable deleteEngineNamespaceCallable(const Model::DeleteEngineNamespaceRequest& request) const; + DeleteFlowRulesOutcome deleteFlowRules(const Model::DeleteFlowRulesRequest &request)const; + void deleteFlowRulesAsync(const Model::DeleteFlowRulesRequest& request, const DeleteFlowRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFlowRulesOutcomeCallable deleteFlowRulesCallable(const Model::DeleteFlowRulesRequest& request) const; DeleteGatewayOutcome deleteGateway(const Model::DeleteGatewayRequest &request)const; void deleteGatewayAsync(const Model::DeleteGatewayRequest& request, const DeleteGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteGatewayOutcomeCallable deleteGatewayCallable(const Model::DeleteGatewayRequest& request) const; + DeleteGatewayAuthConsumerOutcome deleteGatewayAuthConsumer(const Model::DeleteGatewayAuthConsumerRequest &request)const; + void deleteGatewayAuthConsumerAsync(const Model::DeleteGatewayAuthConsumerRequest& request, const DeleteGatewayAuthConsumerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGatewayAuthConsumerOutcomeCallable deleteGatewayAuthConsumerCallable(const Model::DeleteGatewayAuthConsumerRequest& request) const; + DeleteGatewayAuthConsumerResourceOutcome deleteGatewayAuthConsumerResource(const Model::DeleteGatewayAuthConsumerResourceRequest &request)const; + void deleteGatewayAuthConsumerResourceAsync(const Model::DeleteGatewayAuthConsumerResourceRequest& request, const DeleteGatewayAuthConsumerResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGatewayAuthConsumerResourceOutcomeCallable deleteGatewayAuthConsumerResourceCallable(const Model::DeleteGatewayAuthConsumerResourceRequest& request) const; DeleteGatewayDomainOutcome deleteGatewayDomain(const Model::DeleteGatewayDomainRequest &request)const; void deleteGatewayDomainAsync(const Model::DeleteGatewayDomainRequest& request, const DeleteGatewayDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteGatewayDomainOutcomeCallable deleteGatewayDomainCallable(const Model::DeleteGatewayDomainRequest& request) const; @@ -973,6 +1162,9 @@ 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; + DeleteNamespaceOutcome deleteNamespace(const Model::DeleteNamespaceRequest &request)const; + void deleteNamespaceAsync(const Model::DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNamespaceOutcomeCallable deleteNamespaceCallable(const Model::DeleteNamespaceRequest& 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; @@ -991,6 +1183,12 @@ namespace AlibabaCloud 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; + ExportZookeeperDataOutcome exportZookeeperData(const Model::ExportZookeeperDataRequest &request)const; + void exportZookeeperDataAsync(const Model::ExportZookeeperDataRequest& request, const ExportZookeeperDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExportZookeeperDataOutcomeCallable exportZookeeperDataCallable(const Model::ExportZookeeperDataRequest& request) const; + FetchLosslessRuleListOutcome fetchLosslessRuleList(const Model::FetchLosslessRuleListRequest &request)const; + void fetchLosslessRuleListAsync(const Model::FetchLosslessRuleListRequest& request, const FetchLosslessRuleListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FetchLosslessRuleListOutcomeCallable fetchLosslessRuleListCallable(const Model::FetchLosslessRuleListRequest& 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; @@ -1009,6 +1207,9 @@ namespace AlibabaCloud GetGatewayOutcome getGateway(const Model::GetGatewayRequest &request)const; void getGatewayAsync(const Model::GetGatewayRequest& request, const GetGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetGatewayOutcomeCallable getGatewayCallable(const Model::GetGatewayRequest& request) const; + GetGatewayAuthConsumerDetailOutcome getGatewayAuthConsumerDetail(const Model::GetGatewayAuthConsumerDetailRequest &request)const; + void getGatewayAuthConsumerDetailAsync(const Model::GetGatewayAuthConsumerDetailRequest& request, const GetGatewayAuthConsumerDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGatewayAuthConsumerDetailOutcomeCallable getGatewayAuthConsumerDetailCallable(const Model::GetGatewayAuthConsumerDetailRequest& request) const; GetGatewayDomainDetailOutcome getGatewayDomainDetail(const Model::GetGatewayDomainDetailRequest &request)const; void getGatewayDomainDetailAsync(const Model::GetGatewayDomainDetailRequest& request, const GetGatewayDomainDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetGatewayDomainDetailOutcomeCallable getGatewayDomainDetailCallable(const Model::GetGatewayDomainDetailRequest& request) const; @@ -1033,6 +1234,9 @@ namespace AlibabaCloud GetKubernetesSourceOutcome getKubernetesSource(const Model::GetKubernetesSourceRequest &request)const; void getKubernetesSourceAsync(const Model::GetKubernetesSourceRequest& request, const GetKubernetesSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetKubernetesSourceOutcomeCallable getKubernetesSourceCallable(const Model::GetKubernetesSourceRequest& request) const; + GetLosslessRuleByAppOutcome getLosslessRuleByApp(const Model::GetLosslessRuleByAppRequest &request)const; + void getLosslessRuleByAppAsync(const Model::GetLosslessRuleByAppRequest& request, const GetLosslessRuleByAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLosslessRuleByAppOutcomeCallable getLosslessRuleByAppCallable(const Model::GetLosslessRuleByAppRequest& request) const; GetMseFeatureSwitchOutcome getMseFeatureSwitch(const Model::GetMseFeatureSwitchRequest &request)const; void getMseFeatureSwitchAsync(const Model::GetMseFeatureSwitchRequest& request, const GetMseFeatureSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetMseFeatureSwitchOutcomeCallable getMseFeatureSwitchCallable(const Model::GetMseFeatureSwitchRequest& request) const; @@ -1057,9 +1261,15 @@ namespace AlibabaCloud GetServiceListOutcome getServiceList(const Model::GetServiceListRequest &request)const; void getServiceListAsync(const Model::GetServiceListRequest& request, const GetServiceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetServiceListOutcomeCallable getServiceListCallable(const Model::GetServiceListRequest& request) const; + GetServiceListPageOutcome getServiceListPage(const Model::GetServiceListPageRequest &request)const; + void getServiceListPageAsync(const Model::GetServiceListPageRequest& request, const GetServiceListPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceListPageOutcomeCallable getServiceListPageCallable(const Model::GetServiceListPageRequest& request) const; GetServiceListenersOutcome getServiceListeners(const Model::GetServiceListenersRequest &request)const; void getServiceListenersAsync(const Model::GetServiceListenersRequest& request, const GetServiceListenersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetServiceListenersOutcomeCallable getServiceListenersCallable(const Model::GetServiceListenersRequest& request) const; + GetServiceMethodPageOutcome getServiceMethodPage(const Model::GetServiceMethodPageRequest &request)const; + void getServiceMethodPageAsync(const Model::GetServiceMethodPageRequest& request, const GetServiceMethodPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceMethodPageOutcomeCallable getServiceMethodPageCallable(const Model::GetServiceMethodPageRequest& request) const; GetTagsBySwimmingLaneGroupIdOutcome getTagsBySwimmingLaneGroupId(const Model::GetTagsBySwimmingLaneGroupIdRequest &request)const; void getTagsBySwimmingLaneGroupIdAsync(const Model::GetTagsBySwimmingLaneGroupIdRequest& request, const GetTagsBySwimmingLaneGroupIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetTagsBySwimmingLaneGroupIdOutcomeCallable getTagsBySwimmingLaneGroupIdCallable(const Model::GetTagsBySwimmingLaneGroupIdRequest& request) const; @@ -1090,6 +1300,12 @@ namespace AlibabaCloud ListApplicationsWithTagRulesOutcome listApplicationsWithTagRules(const Model::ListApplicationsWithTagRulesRequest &request)const; void listApplicationsWithTagRulesAsync(const Model::ListApplicationsWithTagRulesRequest& request, const ListApplicationsWithTagRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListApplicationsWithTagRulesOutcomeCallable listApplicationsWithTagRulesCallable(const Model::ListApplicationsWithTagRulesRequest& request) const; + ListAuthPolicyOutcome listAuthPolicy(const Model::ListAuthPolicyRequest &request)const; + void listAuthPolicyAsync(const Model::ListAuthPolicyRequest& request, const ListAuthPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAuthPolicyOutcomeCallable listAuthPolicyCallable(const Model::ListAuthPolicyRequest& request) const; + ListCircuitBreakerRulesOutcome listCircuitBreakerRules(const Model::ListCircuitBreakerRulesRequest &request)const; + void listCircuitBreakerRulesAsync(const Model::ListCircuitBreakerRulesRequest& request, const ListCircuitBreakerRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCircuitBreakerRulesOutcomeCallable listCircuitBreakerRulesCallable(const Model::ListCircuitBreakerRulesRequest& request) const; 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; @@ -1117,15 +1333,30 @@ namespace AlibabaCloud ListEurekaServicesOutcome listEurekaServices(const Model::ListEurekaServicesRequest &request)const; void listEurekaServicesAsync(const Model::ListEurekaServicesRequest& request, const ListEurekaServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListEurekaServicesOutcomeCallable listEurekaServicesCallable(const Model::ListEurekaServicesRequest& request) const; + ListExportZookeeperDataOutcome listExportZookeeperData(const Model::ListExportZookeeperDataRequest &request)const; + void listExportZookeeperDataAsync(const Model::ListExportZookeeperDataRequest& request, const ListExportZookeeperDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListExportZookeeperDataOutcomeCallable listExportZookeeperDataCallable(const Model::ListExportZookeeperDataRequest& request) const; + ListFlowRulesOutcome listFlowRules(const Model::ListFlowRulesRequest &request)const; + void listFlowRulesAsync(const Model::ListFlowRulesRequest& request, const ListFlowRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFlowRulesOutcomeCallable listFlowRulesCallable(const Model::ListFlowRulesRequest& request) const; ListGatewayOutcome listGateway(const Model::ListGatewayRequest &request)const; void listGatewayAsync(const Model::ListGatewayRequest& request, const ListGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListGatewayOutcomeCallable listGatewayCallable(const Model::ListGatewayRequest& request) const; + ListGatewayAuthConsumerOutcome listGatewayAuthConsumer(const Model::ListGatewayAuthConsumerRequest &request)const; + void listGatewayAuthConsumerAsync(const Model::ListGatewayAuthConsumerRequest& request, const ListGatewayAuthConsumerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListGatewayAuthConsumerOutcomeCallable listGatewayAuthConsumerCallable(const Model::ListGatewayAuthConsumerRequest& request) const; + ListGatewayAuthConsumerResourceOutcome listGatewayAuthConsumerResource(const Model::ListGatewayAuthConsumerResourceRequest &request)const; + void listGatewayAuthConsumerResourceAsync(const Model::ListGatewayAuthConsumerResourceRequest& request, const ListGatewayAuthConsumerResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListGatewayAuthConsumerResourceOutcomeCallable listGatewayAuthConsumerResourceCallable(const Model::ListGatewayAuthConsumerResourceRequest& request) const; ListGatewayDomainOutcome listGatewayDomain(const Model::ListGatewayDomainRequest &request)const; void listGatewayDomainAsync(const Model::ListGatewayDomainRequest& request, const ListGatewayDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListGatewayDomainOutcomeCallable listGatewayDomainCallable(const Model::ListGatewayDomainRequest& request) const; ListGatewayRouteOutcome listGatewayRoute(const Model::ListGatewayRouteRequest &request)const; void listGatewayRouteAsync(const Model::ListGatewayRouteRequest& request, const ListGatewayRouteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListGatewayRouteOutcomeCallable listGatewayRouteCallable(const Model::ListGatewayRouteRequest& request) const; + ListGatewayRouteOnAuthOutcome listGatewayRouteOnAuth(const Model::ListGatewayRouteOnAuthRequest &request)const; + void listGatewayRouteOnAuthAsync(const Model::ListGatewayRouteOnAuthRequest& request, const ListGatewayRouteOnAuthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListGatewayRouteOnAuthOutcomeCallable listGatewayRouteOnAuthCallable(const Model::ListGatewayRouteOnAuthRequest& request) const; ListGatewayServiceOutcome listGatewayService(const Model::ListGatewayServiceRequest &request)const; void listGatewayServiceAsync(const Model::ListGatewayServiceRequest& request, const ListGatewayServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListGatewayServiceOutcomeCallable listGatewayServiceCallable(const Model::ListGatewayServiceRequest& request) const; @@ -1231,6 +1462,9 @@ namespace AlibabaCloud QueryMonitorOutcome queryMonitor(const Model::QueryMonitorRequest &request)const; void queryMonitorAsync(const Model::QueryMonitorRequest& request, const QueryMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryMonitorOutcomeCallable queryMonitorCallable(const Model::QueryMonitorRequest& request) const; + QueryNamespaceOutcome queryNamespace(const Model::QueryNamespaceRequest &request)const; + void queryNamespaceAsync(const Model::QueryNamespaceRequest& request, const QueryNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryNamespaceOutcomeCallable queryNamespaceCallable(const Model::QueryNamespaceRequest& request) const; QuerySlbSpecOutcome querySlbSpec(const Model::QuerySlbSpecRequest &request)const; void querySlbSpecAsync(const Model::QuerySlbSpecRequest& request, const QuerySlbSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySlbSpecOutcomeCallable querySlbSpecCallable(const Model::QuerySlbSpecRequest& request) const; @@ -1240,6 +1474,12 @@ namespace AlibabaCloud 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; + RemoveApplicationOutcome removeApplication(const Model::RemoveApplicationRequest &request)const; + void removeApplicationAsync(const Model::RemoveApplicationRequest& request, const RemoveApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveApplicationOutcomeCallable removeApplicationCallable(const Model::RemoveApplicationRequest& request) const; + RemoveAuthPolicyOutcome removeAuthPolicy(const Model::RemoveAuthPolicyRequest &request)const; + void removeAuthPolicyAsync(const Model::RemoveAuthPolicyRequest& request, const RemoveAuthPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveAuthPolicyOutcomeCallable removeAuthPolicyCallable(const Model::RemoveAuthPolicyRequest& 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; @@ -1258,9 +1498,15 @@ namespace AlibabaCloud UpdateAclOutcome updateAcl(const Model::UpdateAclRequest &request)const; void updateAclAsync(const Model::UpdateAclRequest& request, const UpdateAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAclOutcomeCallable updateAclCallable(const Model::UpdateAclRequest& request) const; + UpdateAuthPolicyOutcome updateAuthPolicy(const Model::UpdateAuthPolicyRequest &request)const; + void updateAuthPolicyAsync(const Model::UpdateAuthPolicyRequest& request, const UpdateAuthPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAuthPolicyOutcomeCallable updateAuthPolicyCallable(const Model::UpdateAuthPolicyRequest& request) const; UpdateBlackWhiteListOutcome updateBlackWhiteList(const Model::UpdateBlackWhiteListRequest &request)const; void updateBlackWhiteListAsync(const Model::UpdateBlackWhiteListRequest& request, const UpdateBlackWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateBlackWhiteListOutcomeCallable updateBlackWhiteListCallable(const Model::UpdateBlackWhiteListRequest& request) const; + UpdateCircuitBreakerRuleOutcome updateCircuitBreakerRule(const Model::UpdateCircuitBreakerRuleRequest &request)const; + void updateCircuitBreakerRuleAsync(const Model::UpdateCircuitBreakerRuleRequest& request, const UpdateCircuitBreakerRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCircuitBreakerRuleOutcomeCallable updateCircuitBreakerRuleCallable(const Model::UpdateCircuitBreakerRuleRequest& request) const; UpdateClusterOutcome updateCluster(const Model::UpdateClusterRequest &request)const; void updateClusterAsync(const Model::UpdateClusterRequest& request, const UpdateClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateClusterOutcomeCallable updateClusterCallable(const Model::UpdateClusterRequest& request) const; @@ -1273,6 +1519,21 @@ namespace AlibabaCloud UpdateEngineNamespaceOutcome updateEngineNamespace(const Model::UpdateEngineNamespaceRequest &request)const; void updateEngineNamespaceAsync(const Model::UpdateEngineNamespaceRequest& request, const UpdateEngineNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateEngineNamespaceOutcomeCallable updateEngineNamespaceCallable(const Model::UpdateEngineNamespaceRequest& request) const; + UpdateFlowRuleOutcome updateFlowRule(const Model::UpdateFlowRuleRequest &request)const; + void updateFlowRuleAsync(const Model::UpdateFlowRuleRequest& request, const UpdateFlowRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateFlowRuleOutcomeCallable updateFlowRuleCallable(const Model::UpdateFlowRuleRequest& request) const; + UpdateGatewayAuthConsumerOutcome updateGatewayAuthConsumer(const Model::UpdateGatewayAuthConsumerRequest &request)const; + void updateGatewayAuthConsumerAsync(const Model::UpdateGatewayAuthConsumerRequest& request, const UpdateGatewayAuthConsumerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayAuthConsumerOutcomeCallable updateGatewayAuthConsumerCallable(const Model::UpdateGatewayAuthConsumerRequest& request) const; + UpdateGatewayAuthConsumerResourceOutcome updateGatewayAuthConsumerResource(const Model::UpdateGatewayAuthConsumerResourceRequest &request)const; + void updateGatewayAuthConsumerResourceAsync(const Model::UpdateGatewayAuthConsumerResourceRequest& request, const UpdateGatewayAuthConsumerResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayAuthConsumerResourceOutcomeCallable updateGatewayAuthConsumerResourceCallable(const Model::UpdateGatewayAuthConsumerResourceRequest& request) const; + UpdateGatewayAuthConsumerResourceStatusOutcome updateGatewayAuthConsumerResourceStatus(const Model::UpdateGatewayAuthConsumerResourceStatusRequest &request)const; + void updateGatewayAuthConsumerResourceStatusAsync(const Model::UpdateGatewayAuthConsumerResourceStatusRequest& request, const UpdateGatewayAuthConsumerResourceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayAuthConsumerResourceStatusOutcomeCallable updateGatewayAuthConsumerResourceStatusCallable(const Model::UpdateGatewayAuthConsumerResourceStatusRequest& request) const; + UpdateGatewayAuthConsumerStatusOutcome updateGatewayAuthConsumerStatus(const Model::UpdateGatewayAuthConsumerStatusRequest &request)const; + void updateGatewayAuthConsumerStatusAsync(const Model::UpdateGatewayAuthConsumerStatusRequest& request, const UpdateGatewayAuthConsumerStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayAuthConsumerStatusOutcomeCallable updateGatewayAuthConsumerStatusCallable(const Model::UpdateGatewayAuthConsumerStatusRequest& request) const; UpdateGatewayDomainOutcome updateGatewayDomain(const Model::UpdateGatewayDomainRequest &request)const; void updateGatewayDomainAsync(const Model::UpdateGatewayDomainRequest& request, const UpdateGatewayDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateGatewayDomainOutcomeCallable updateGatewayDomainCallable(const Model::UpdateGatewayDomainRequest& request) const; @@ -1285,6 +1546,9 @@ namespace AlibabaCloud UpdateGatewayRouteOutcome updateGatewayRoute(const Model::UpdateGatewayRouteRequest &request)const; void updateGatewayRouteAsync(const Model::UpdateGatewayRouteRequest& request, const UpdateGatewayRouteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateGatewayRouteOutcomeCallable updateGatewayRouteCallable(const Model::UpdateGatewayRouteRequest& request) const; + UpdateGatewayRouteAuthOutcome updateGatewayRouteAuth(const Model::UpdateGatewayRouteAuthRequest &request)const; + void updateGatewayRouteAuthAsync(const Model::UpdateGatewayRouteAuthRequest& request, const UpdateGatewayRouteAuthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayRouteAuthOutcomeCallable updateGatewayRouteAuthCallable(const Model::UpdateGatewayRouteAuthRequest& request) const; UpdateGatewayRouteCORSOutcome updateGatewayRouteCORS(const Model::UpdateGatewayRouteCORSRequest &request)const; void updateGatewayRouteCORSAsync(const Model::UpdateGatewayRouteCORSRequest& request, const UpdateGatewayRouteCORSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateGatewayRouteCORSOutcomeCallable updateGatewayRouteCORSCallable(const Model::UpdateGatewayRouteCORSRequest& request) const; diff --git a/mse/include/alibabacloud/mse/model/AddAuthPolicyRequest.h b/mse/include/alibabacloud/mse/model/AddAuthPolicyRequest.h new file mode 100644 index 000000000..750e32666 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddAuthPolicyRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_ADDAUTHPOLICYREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDAUTHPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT AddAuthPolicyRequest : public RpcServiceRequest { +public: + AddAuthPolicyRequest(); + ~AddAuthPolicyRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getAuthRule() const; + void setAuthRule(const std::string &authRule); + std::string getSource() const; + void setSource(const std::string &source); + int getAuthType() const; + void setAuthType(int authType); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getEnable() const; + void setEnable(const std::string &enable); + std::string getK8sNamespace() const; + void setK8sNamespace(const std::string &k8sNamespace); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getName() const; + void setName(const std::string &name); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string mseSessionId_; + std::string authRule_; + std::string source_; + int authType_; + std::string protocol_; + std::string enable_; + std::string k8sNamespace_; + std::string appId_; + std::string name_; + std::string _namespace_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_ADDAUTHPOLICYREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddAuthPolicyResult.h b/mse/include/alibabacloud/mse/model/AddAuthPolicyResult.h new file mode 100644 index 000000000..7b75ff344 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddAuthPolicyResult.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_ADDAUTHPOLICYRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDAUTHPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddAuthPolicyResult : public ServiceResult + { + public: + + + AddAuthPolicyResult(); + explicit AddAuthPolicyResult(const std::string &payload); + ~AddAuthPolicyResult(); + 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_ADDAUTHPOLICYRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/AddGatewayAuthConsumerRequest.h b/mse/include/alibabacloud/mse/model/AddGatewayAuthConsumerRequest.h new file mode 100644 index 000000000..f4b33a6cb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddGatewayAuthConsumerRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_ADDGATEWAYAUTHCONSUMERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDGATEWAYAUTHCONSUMERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT AddGatewayAuthConsumerRequest : public RpcServiceRequest { +public: + AddGatewayAuthConsumerRequest(); + ~AddGatewayAuthConsumerRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getType() const; + void setType(const std::string &type); + std::string getKeyName() const; + void setKeyName(const std::string &keyName); + std::string getTokenPrefix() const; + void setTokenPrefix(const std::string &tokenPrefix); + std::string getName() const; + void setName(const std::string &name); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getJwks() const; + void setJwks(const std::string &jwks); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getTokenPosition() const; + void setTokenPosition(const std::string &tokenPosition); + std::string getEncodeType() const; + void setEncodeType(const std::string &encodeType); + std::string getKeyValue() const; + void setKeyValue(const std::string &keyValue); + bool getTokenPass() const; + void setTokenPass(bool tokenPass); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getTokenName() const; + void setTokenName(const std::string &tokenName); + +private: + std::string mseSessionId_; + std::string type_; + std::string keyName_; + std::string tokenPrefix_; + std::string name_; + std::string gatewayUniqueId_; + std::string jwks_; + std::string description_; + std::string tokenPosition_; + std::string encodeType_; + std::string keyValue_; + bool tokenPass_; + std::string acceptLanguage_; + std::string tokenName_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_ADDGATEWAYAUTHCONSUMERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddGatewayAuthConsumerResult.h b/mse/include/alibabacloud/mse/model/AddGatewayAuthConsumerResult.h new file mode 100644 index 000000000..ab24c4ea6 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddGatewayAuthConsumerResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_ADDGATEWAYAUTHCONSUMERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDGATEWAYAUTHCONSUMERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddGatewayAuthConsumerResult : public ServiceResult + { + public: + + + AddGatewayAuthConsumerResult(); + explicit AddGatewayAuthConsumerResult(const std::string &payload); + ~AddGatewayAuthConsumerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + long getData()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + long data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_ADDGATEWAYAUTHCONSUMERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/AddGatewayRequest.h b/mse/include/alibabacloud/mse/model/AddGatewayRequest.h index f97c16cd3..fd89ac646 100644 --- a/mse/include/alibabacloud/mse/model/AddGatewayRequest.h +++ b/mse/include/alibabacloud/mse/model/AddGatewayRequest.h @@ -32,6 +32,10 @@ public: std::string value; std::string key; }; + struct ZoneInfo { + std::string vSwitchId; + std::string zoneId; + }; AddGatewayRequest(); ~AddGatewayRequest(); std::string getMseSessionId() const; @@ -40,12 +44,8 @@ public: void setInternetSlbSpec(const std::string &internetSlbSpec); bool getEnableXtrace() const; void setEnableXtrace(bool enableXtrace); - std::string getXtraceRatio() const; - void setXtraceRatio(const std::string &xtraceRatio); int getReplica() const; void setReplica(int replica); - std::string getVSwitchId2() const; - void setVSwitchId2(const std::string &vSwitchId2); bool getEnableHardwareAcceleration() const; void setEnableHardwareAcceleration(bool enableHardwareAcceleration); bool getEnableSls() const; @@ -54,42 +54,55 @@ public: void setSpec(const std::string &spec); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); bool getEnterpriseSecurityGroup() const; void setEnterpriseSecurityGroup(bool enterpriseSecurityGroup); std::vector getTag() const; void setTag(const std::vector &tag); - std::string getVpc() const; - void setVpc(const std::string &vpc); std::string getVSwitchId() const; void setVSwitchId(const std::string &vSwitchId); std::string getSlbSpec() const; void setSlbSpec(const std::string &slbSpec); std::string getName() const; void setName(const std::string &name); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::string getRegion() const; void setRegion(const std::string ®ion); + std::vector getZoneInfo() const; + void setZoneInfo(const std::vector &zoneInfo); + std::string getXtraceRatio() const; + void setXtraceRatio(const std::string &xtraceRatio); + std::string getVSwitchId2() const; + void setVSwitchId2(const std::string &vSwitchId2); + std::string getVpc() const; + void setVpc(const std::string &vpc); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); private: std::string mseSessionId_; std::string internetSlbSpec_; bool enableXtrace_; - std::string xtraceRatio_; int replica_; - std::string vSwitchId2_; bool enableHardwareAcceleration_; bool enableSls_; std::string spec_; std::string resourceGroupId_; + std::string requestPars_; bool enterpriseSecurityGroup_; std::vector tag_; - std::string vpc_; std::string vSwitchId_; std::string slbSpec_; std::string name_; - std::string acceptLanguage_; std::string region_; + std::vector zoneInfo_; + std::string xtraceRatio_; + std::string vSwitchId2_; + std::string vpc_; + std::string acceptLanguage_; + std::string chargeType_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/AddGatewayRouteRequest.h b/mse/include/alibabacloud/mse/model/AddGatewayRouteRequest.h index 4be7e301c..bc67598e2 100644 --- a/mse/include/alibabacloud/mse/model/AddGatewayRouteRequest.h +++ b/mse/include/alibabacloud/mse/model/AddGatewayRouteRequest.h @@ -28,6 +28,45 @@ namespace Mse { namespace Model { class ALIBABACLOUD_MSE_EXPORT AddGatewayRouteRequest : public RpcServiceRequest { public: + struct Predicates { + struct PathPredicates { + std::string path; + bool ignoreCase; + std::string type; + }; + PathPredicates pathPredicates; + std::string string; + std::vector methodPredicates; + struct HeaderPredicatesItem { + std::string type; + std::string value; + std::string key; + }; + HeaderPredicatesItem headerPredicatesItem; + std::vector headerPredicates; + struct QueryPredicatesItem { + std::string type; + std::string value; + std::string key; + }; + QueryPredicatesItem queryPredicatesItem; + std::vector queryPredicates; + }; + struct DirectResponseJSON { + long code; + std::string body; + }; + struct FallbackServices { + std::string agreementType; + std::string name; + std::string _namespace; + std::string sourceType; + long serviceId; + int percent; + std::string version; + std::string groupName; + int servicePort; + }; struct Services { struct HttpDubboTranscoder { std::string dubboServiceName; @@ -62,102 +101,69 @@ public: std::string groupName; int servicePort; }; - struct Predicates { - struct PathPredicates { - std::string path; - bool ignoreCase; - std::string type; - }; - PathPredicates pathPredicates; - std::string string; - std::vector methodPredicates; - struct HeaderPredicatesItem { - std::string type; - std::string value; - std::string key; - }; - HeaderPredicatesItem headerPredicatesItem; - std::vector headerPredicates; - struct QueryPredicatesItem { - std::string type; - std::string value; - std::string key; - }; - QueryPredicatesItem queryPredicatesItem; - std::vector queryPredicates; - }; struct RedirectJSON { std::string path; int code; std::string host; }; - struct DirectResponseJSON { - long code; - std::string body; - }; - struct FallbackServices { - std::string agreementType; - std::string name; - std::string _namespace; - std::string sourceType; - long serviceId; - int percent; - std::string version; - std::string groupName; - int servicePort; - }; AddGatewayRouteRequest(); ~AddGatewayRouteRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getGatewayUniqueId() const; - void setGatewayUniqueId(const std::string &gatewayUniqueId); - std::string getDestinationType() const; - void setDestinationType(const std::string &destinationType); std::string getDomainIdListJSON() const; void setDomainIdListJSON(const std::string &domainIdListJSON); long getDomainId() const; void setDomainId(long domainId); + std::string getRouteType() const; + void setRouteType(const std::string &routeType); long getGatewayId() const; 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; void setPredicates(const Predicates &predicates); - RedirectJSON getRedirectJSON() const; - void setRedirectJSON(const RedirectJSON &redirectJSON); DirectResponseJSON getDirectResponseJSON() const; void setDirectResponseJSON(const DirectResponseJSON &directResponseJSON); std::string getName() const; void setName(const std::string &name); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::vector getFallbackServices() const; void setFallbackServices(const std::vector &fallbackServices); bool getFallback() const; void setFallback(bool fallback); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getDestinationType() const; + void setDestinationType(const std::string &destinationType); + std::string getPolicies() const; + void setPolicies(const std::string &policies); + int getRouteOrder() const; + void setRouteOrder(int routeOrder); + std::vector getServices() const; + void setServices(const std::vector &services); + RedirectJSON getRedirectJSON() const; + void setRedirectJSON(const RedirectJSON &redirectJSON); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string gatewayUniqueId_; - std::string destinationType_; std::string domainIdListJSON_; long domainId_; + std::string routeType_; long gatewayId_; - int routeOrder_; bool enableWaf_; - std::vector services_; Predicates predicates_; - RedirectJSON redirectJSON_; DirectResponseJSON directResponseJSON_; std::string name_; - std::string acceptLanguage_; std::vector fallbackServices_; bool fallback_; + std::string gatewayUniqueId_; + std::string destinationType_; + std::string policies_; + int routeOrder_; + std::vector services_; + RedirectJSON redirectJSON_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/AddGatewayRouteResult.h b/mse/include/alibabacloud/mse/model/AddGatewayRouteResult.h index ba4ba4202..53f1a908b 100644 --- a/mse/include/alibabacloud/mse/model/AddGatewayRouteResult.h +++ b/mse/include/alibabacloud/mse/model/AddGatewayRouteResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string getMessage()const; int getHttpStatusCode()const; long getData()const; + std::string getErrorCode()const; int getCode()const; bool getSuccess()const; @@ -49,6 +50,7 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; long data_; + std::string errorCode_; int code_; bool success_; diff --git a/mse/include/alibabacloud/mse/model/AddGatewaySlbRequest.h b/mse/include/alibabacloud/mse/model/AddGatewaySlbRequest.h index ecba20225..b36037fcc 100644 --- a/mse/include/alibabacloud/mse/model/AddGatewaySlbRequest.h +++ b/mse/include/alibabacloud/mse/model/AddGatewaySlbRequest.h @@ -28,6 +28,12 @@ namespace Mse { namespace Model { class ALIBABACLOUD_MSE_EXPORT AddGatewaySlbRequest : public RpcServiceRequest { public: + struct VServiceList { + std::string vServerGroupId; + std::string protocol; + int port; + std::string vServerGroupName; + }; AddGatewaySlbRequest(); ~AddGatewaySlbRequest(); std::string getMseSessionId() const; @@ -44,6 +50,8 @@ public: void setServiceWeight(int serviceWeight); std::string getVServerGroupId() const; void setVServerGroupId(const std::string &vServerGroupId); + std::vector getVServiceList() const; + void setVServiceList(const std::vector &vServiceList); std::string getHttpsVServerGroupId() const; void setHttpsVServerGroupId(const std::string &httpsVServerGroupId); std::string getAcceptLanguage() const; @@ -59,6 +67,7 @@ private: int httpPort_; int serviceWeight_; std::string vServerGroupId_; + std::vector vServiceList_; std::string httpsVServerGroupId_; std::string acceptLanguage_; int httpsPort_; diff --git a/mse/include/alibabacloud/mse/model/AddMockRuleRequest.h b/mse/include/alibabacloud/mse/model/AddMockRuleRequest.h index d67293a3c..1b5e016c5 100644 --- a/mse/include/alibabacloud/mse/model/AddMockRuleRequest.h +++ b/mse/include/alibabacloud/mse/model/AddMockRuleRequest.h @@ -34,43 +34,43 @@ public: void setMseSessionId(const std::string &mseSessionId); std::string getExtraJson() const; void setExtraJson(const std::string &extraJson); - std::string getProviderAppId() const; - void setProviderAppId(const std::string &providerAppId); std::string getSource() const; void setSource(const std::string &source); bool getEnable() const; void setEnable(bool enable); std::string getScMockItems() const; void setScMockItems(const std::string &scMockItems); + std::string getName() const; + void setName(const std::string &name); + std::string getRegion() const; + void setRegion(const std::string ®ion); + std::string getProviderAppId() const; + void setProviderAppId(const std::string &providerAppId); std::string getProviderAppName() const; void setProviderAppName(const std::string &providerAppName); std::string getConsumerAppIds() const; void setConsumerAppIds(const std::string &consumerAppIds); std::string getDubboMockItems() const; void setDubboMockItems(const std::string &dubboMockItems); - std::string getName() const; - void setName(const std::string &name); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); long getMockType() const; void setMockType(long mockType); - std::string getRegion() const; - void setRegion(const std::string ®ion); private: std::string mseSessionId_; std::string extraJson_; - std::string providerAppId_; std::string source_; bool enable_; std::string scMockItems_; + std::string name_; + std::string region_; + std::string providerAppId_; std::string providerAppName_; std::string consumerAppIds_; std::string dubboMockItems_; - std::string name_; std::string acceptLanguage_; long mockType_; - std::string region_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/ApplyTagPoliciesRequest.h b/mse/include/alibabacloud/mse/model/ApplyTagPoliciesRequest.h index 2d9622b77..d94e4976e 100644 --- a/mse/include/alibabacloud/mse/model/ApplyTagPoliciesRequest.h +++ b/mse/include/alibabacloud/mse/model/ApplyTagPoliciesRequest.h @@ -36,12 +36,16 @@ public: void setRules(const std::string &rules); std::string getSource() const; void setSource(const std::string &source); + std::string getAppName() const; + void setAppName(const std::string &appName); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); bool getEnable() const; void setEnable(bool enable); std::string getAppId() const; void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); std::string getRegion() const; @@ -51,9 +55,11 @@ private: std::string mseSessionId_; std::string rules_; std::string source_; + std::string appName_; std::string namespaceId_; bool enable_; std::string appId_; + std::string _namespace_; std::string acceptLanguage_; std::string region_; }; diff --git a/mse/include/alibabacloud/mse/model/CloneNacosConfigRequest.h b/mse/include/alibabacloud/mse/model/CloneNacosConfigRequest.h index a3399b217..cc672e65c 100644 --- a/mse/include/alibabacloud/mse/model/CloneNacosConfigRequest.h +++ b/mse/include/alibabacloud/mse/model/CloneNacosConfigRequest.h @@ -34,25 +34,25 @@ public: void setMseSessionId(const std::string &mseSessionId); std::string getTargetNamespaceId() const; void setTargetNamespaceId(const std::string &targetNamespaceId); + std::string getOriginNamespaceId() const; + void setOriginNamespaceId(const std::string &originNamespaceId); + std::string getPolicy() const; + void setPolicy(const std::string &policy); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); std::string getIds() const; void setIds(const std::string &ids); - std::string getOriginNamespaceId() const; - void setOriginNamespaceId(const std::string &originNamespaceId); - std::string getPolicy() const; - void setPolicy(const std::string &policy); private: std::string mseSessionId_; std::string targetNamespaceId_; + std::string originNamespaceId_; + std::string policy_; std::string instanceId_; std::string acceptLanguage_; std::string ids_; - std::string originNamespaceId_; - std::string policy_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/CreateCircuitBreakerRuleRequest.h b/mse/include/alibabacloud/mse/model/CreateCircuitBreakerRuleRequest.h new file mode 100644 index 000000000..2c60b39ee --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateCircuitBreakerRuleRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_CREATECIRCUITBREAKERRULEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATECIRCUITBREAKERRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT CreateCircuitBreakerRuleRequest : public RpcServiceRequest { +public: + CreateCircuitBreakerRuleRequest(); + ~CreateCircuitBreakerRuleRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + float getThreshold() const; + void setThreshold(float threshold); + int getRetryTimeoutMs() const; + void setRetryTimeoutMs(int retryTimeoutMs); + std::string getAppName() const; + void setAppName(const std::string &appName); + bool getEnable() const; + void setEnable(bool enable); + int getMinRequestAmount() const; + void setMinRequestAmount(int minRequestAmount); + std::string getResource() const; + void setResource(const std::string &resource); + int getMaxAllowedRtMs() const; + void setMaxAllowedRtMs(int maxAllowedRtMs); + int getHalfOpenBaseAmountPerStep() const; + void setHalfOpenBaseAmountPerStep(int halfOpenBaseAmountPerStep); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getStatIntervalMs() const; + void setStatIntervalMs(int statIntervalMs); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + int getHalfOpenRecoveryStepNum() const; + void setHalfOpenRecoveryStepNum(int halfOpenRecoveryStepNum); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + int getStrategy() const; + void setStrategy(int strategy); + +private: + std::string mseSessionId_; + float threshold_; + int retryTimeoutMs_; + std::string appName_; + bool enable_; + int minRequestAmount_; + std::string resource_; + int maxAllowedRtMs_; + int halfOpenBaseAmountPerStep_; + std::string regionId_; + int statIntervalMs_; + std::string appId_; + std::string _namespace_; + int halfOpenRecoveryStepNum_; + std::string acceptLanguage_; + int strategy_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_CREATECIRCUITBREAKERRULEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CreateCircuitBreakerRuleResult.h b/mse/include/alibabacloud/mse/model/CreateCircuitBreakerRuleResult.h new file mode 100644 index 000000000..909daa059 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateCircuitBreakerRuleResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_CREATECIRCUITBREAKERRULERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATECIRCUITBREAKERRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT CreateCircuitBreakerRuleResult : public ServiceResult + { + public: + struct Data + { + int minRequestAmount; + std::string resource; + std::string _namespace; + std::string appName; + int retryTimeoutMs; + std::string appId; + int halfOpenRecoveryStepNum; + bool enable; + int strategy; + int maxAllowedRtMs; + long id; + std::string regionId; + int halfOpenBaseAmountPerStep; + int statIntervalMs; + float threshold; + }; + + + CreateCircuitBreakerRuleResult(); + explicit CreateCircuitBreakerRuleResult(const std::string &payload); + ~CreateCircuitBreakerRuleResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_CREATECIRCUITBREAKERRULERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/CreateClusterRequest.h b/mse/include/alibabacloud/mse/model/CreateClusterRequest.h index 9104252b2..29aff6c9a 100644 --- a/mse/include/alibabacloud/mse/model/CreateClusterRequest.h +++ b/mse/include/alibabacloud/mse/model/CreateClusterRequest.h @@ -38,18 +38,30 @@ public: void setClusterSpecification(const std::string &clusterSpecification); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getPubSlbSpecification() const; - void setPubSlbSpecification(const std::string &pubSlbSpecification); - std::string getPrivateSlbSpecification() const; - void setPrivateSlbSpecification(const std::string &privateSlbSpecification); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); - int getInstanceCount() const; - void setInstanceCount(int instanceCount); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); std::vector getTag() const; void setTag(const std::vector &tag); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getClusterType() const; + void setClusterType(const std::string &clusterType); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getNetType() const; + void setNetType(const std::string &netType); + std::string getMseVersion() const; + void setMseVersion(const std::string &mseVersion); + std::string getRegion() const; + void setRegion(const std::string ®ion); + std::string getPubSlbSpecification() const; + void setPubSlbSpecification(const std::string &pubSlbSpecification); + std::string getPrivateSlbSpecification() const; + void setPrivateSlbSpecification(const std::string &privateSlbSpecification); + int getInstanceCount() const; + void setInstanceCount(int instanceCount); std::string getConnectionType() const; void setConnectionType(const std::string &connectionType); std::string getClusterVersion() const; @@ -58,47 +70,38 @@ public: void setDiskCapacity(int diskCapacity); std::string getDiskType() const; void setDiskType(const std::string &diskType); - std::string getVSwitchId() const; - void setVSwitchId(const std::string &vSwitchId); - std::string getClusterType() const; - void setClusterType(const std::string &clusterType); - std::string getInstanceName() const; - void setInstanceName(const std::string &instanceName); std::string getPubNetworkFlow() const; void setPubNetworkFlow(const std::string &pubNetworkFlow); std::string getVpcId() const; void setVpcId(const std::string &vpcId); - std::string getNetType() const; - void setNetType(const std::string &netType); - std::string getMseVersion() const; - void setMseVersion(const std::string &mseVersion); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::string getRegion() const; - void setRegion(const std::string ®ion); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); private: std::string clusterSpecification_; std::string mseSessionId_; - std::string pubSlbSpecification_; - std::string privateSlbSpecification_; std::string resourceGroupId_; - int instanceCount_; std::string requestPars_; std::vector tag_; + std::string vSwitchId_; + std::string clusterType_; + std::string instanceName_; + std::string netType_; + std::string mseVersion_; + std::string region_; + std::string pubSlbSpecification_; + std::string privateSlbSpecification_; + int instanceCount_; std::string connectionType_; std::string clusterVersion_; int diskCapacity_; std::string diskType_; - std::string vSwitchId_; - std::string clusterType_; - std::string instanceName_; std::string pubNetworkFlow_; std::string vpcId_; - std::string netType_; - std::string mseVersion_; std::string acceptLanguage_; - std::string region_; + std::string chargeType_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h b/mse/include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h index b002d61ee..6b7928664 100644 --- a/mse/include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h +++ b/mse/include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h @@ -32,29 +32,29 @@ public: ~CreateEngineNamespaceRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + int getServiceCount() const; + void setServiceCount(int serviceCount); + std::string getId() const; + void setId(const std::string &id); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - int getServiceCount() const; - void setServiceCount(int serviceCount); std::string getName() const; 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); private: std::string mseSessionId_; + int serviceCount_; + std::string id_; std::string clusterId_; std::string instanceId_; - int serviceCount_; std::string name_; std::string acceptLanguage_; - std::string id_; std::string desc_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/CreateFlowRuleRequest.h b/mse/include/alibabacloud/mse/model/CreateFlowRuleRequest.h new file mode 100644 index 000000000..efe2ba37c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateFlowRuleRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_CREATEFLOWRULEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATEFLOWRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT CreateFlowRuleRequest : public RpcServiceRequest { +public: + CreateFlowRuleRequest(); + ~CreateFlowRuleRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + int getControlBehavior() const; + void setControlBehavior(int controlBehavior); + int getThreshold() const; + void setThreshold(int threshold); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getEnable() const; + void setEnable(bool enable); + std::string getResource() const; + void setResource(const std::string &resource); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + int getMaxQueueingTimeMs() const; + void setMaxQueueingTimeMs(int maxQueueingTimeMs); + +private: + std::string mseSessionId_; + int controlBehavior_; + int threshold_; + std::string appName_; + std::string regionId_; + bool enable_; + std::string resource_; + std::string appId_; + std::string _namespace_; + std::string acceptLanguage_; + int maxQueueingTimeMs_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_CREATEFLOWRULEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CreateFlowRuleResult.h b/mse/include/alibabacloud/mse/model/CreateFlowRuleResult.h new file mode 100644 index 000000000..05c20c7e6 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateFlowRuleResult.h @@ -0,0 +1,70 @@ +/* + * 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_CREATEFLOWRULERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATEFLOWRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT CreateFlowRuleResult : public ServiceResult + { + public: + struct Data + { + std::string appId; + int controlBehavior; + std::string resource; + int maxQueueingTimeMs; + bool enable; + std::string _namespace; + long id; + std::string regionId; + std::string appName; + float threshold; + }; + + + CreateFlowRuleResult(); + explicit CreateFlowRuleResult(const std::string &payload); + ~CreateFlowRuleResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_CREATEFLOWRULERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/CreateNacosInstanceRequest.h b/mse/include/alibabacloud/mse/model/CreateNacosInstanceRequest.h index 12f0a4f3d..9fa89261e 100644 --- a/mse/include/alibabacloud/mse/model/CreateNacosInstanceRequest.h +++ b/mse/include/alibabacloud/mse/model/CreateNacosInstanceRequest.h @@ -38,12 +38,8 @@ public: void setClusterName(const std::string &clusterName); bool getEphemeral() const; void setEphemeral(bool ephemeral); - bool getEnabled() const; - void setEnabled(bool enabled); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); - std::string getServiceName() const; - void setServiceName(const std::string &serviceName); std::string getIp() const; void setIp(const std::string &ip); std::string getWeight() const; @@ -54,6 +50,10 @@ public: void setInstanceId(const std::string &instanceId); int getPort() const; void setPort(int port); + bool getEnabled() const; + void setEnabled(bool enabled); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); @@ -62,14 +62,14 @@ private: std::string metadata_; std::string clusterName_; bool ephemeral_; - bool enabled_; std::string namespaceId_; - std::string serviceName_; std::string ip_; std::string weight_; std::string groupName_; std::string instanceId_; int port_; + bool enabled_; + std::string serviceName_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/CreateNacosServiceRequest.h b/mse/include/alibabacloud/mse/model/CreateNacosServiceRequest.h index 82afceffb..51ce215e1 100644 --- a/mse/include/alibabacloud/mse/model/CreateNacosServiceRequest.h +++ b/mse/include/alibabacloud/mse/model/CreateNacosServiceRequest.h @@ -34,30 +34,30 @@ public: void setMseSessionId(const std::string &mseSessionId); bool getEphemeral() const; void setEphemeral(bool ephemeral); + std::string getNamespaceId() const; + void setNamespaceId(const std::string &namespaceId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getGroupName() const; void setGroupName(const std::string &groupName); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - std::string getNamespaceId() const; - void setNamespaceId(const std::string &namespaceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::string getServiceName() const; - void setServiceName(const std::string &serviceName); std::string getProtectThreshold() const; void setProtectThreshold(const std::string &protectThreshold); private: std::string mseSessionId_; bool ephemeral_; + std::string namespaceId_; + std::string serviceName_; std::string clusterId_; std::string groupName_; std::string instanceId_; - std::string namespaceId_; std::string acceptLanguage_; - std::string serviceName_; std::string protectThreshold_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneGroupRequest.h b/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneGroupRequest.h index 8b598cf65..2ee253d41 100644 --- a/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneGroupRequest.h +++ b/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneGroupRequest.h @@ -32,60 +32,48 @@ public: ~CreateOrUpdateSwimmingLaneGroupRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getSource() const; - void setSource(const std::string &source); - std::string getGmtModified() const; - void setGmtModified(const std::string &gmtModified); - std::string getUserId() const; - void setUserId(const std::string &userId); - std::string getLicenseKey() const; - void setLicenseKey(const std::string &licenseKey); std::string getAppIds() const; void setAppIds(const std::string &appIds); - bool getMessageQueueGrayEnable() const; - void setMessageQueueGrayEnable(bool messageQueueGrayEnable); bool getDbGrayEnable() const; void setDbGrayEnable(bool dbGrayEnable); bool getEnable() const; void setEnable(bool enable); - std::string getEntryApp() const; - void setEntryApp(const std::string &entryApp); long getId() const; void setId(long id); - std::string getGmtCreate() const; - void setGmtCreate(const std::string &gmtCreate); std::string getName() const; void setName(const std::string &name); std::string getMessageQueueFilterSide() const; void setMessageQueueFilterSide(const std::string &messageQueueFilterSide); - std::string get_Namespace() const; - void set_Namespace(const std::string &_namespace); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::string getRegion() const; void setRegion(const std::string ®ion); int getStatus() const; void setStatus(int status); + bool getMessageQueueGrayEnable() const; + void setMessageQueueGrayEnable(bool messageQueueGrayEnable); + std::string getEntryApp() const; + void setEntryApp(const std::string &entryApp); + bool getRecordCanaryDetail() const; + void setRecordCanaryDetail(bool recordCanaryDetail); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string source_; - std::string gmtModified_; - std::string userId_; - std::string licenseKey_; std::string appIds_; - bool messageQueueGrayEnable_; bool dbGrayEnable_; bool enable_; - std::string entryApp_; long id_; - std::string gmtCreate_; std::string name_; std::string messageQueueFilterSide_; - std::string _namespace_; - std::string acceptLanguage_; std::string region_; int status_; + bool messageQueueGrayEnable_; + std::string entryApp_; + bool recordCanaryDetail_; + std::string _namespace_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneGroupResult.h b/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneGroupResult.h index 398239ba3..f1a9db34b 100644 --- a/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneGroupResult.h +++ b/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneGroupResult.h @@ -32,15 +32,54 @@ namespace AlibabaCloud class ALIBABACLOUD_MSE_EXPORT CreateOrUpdateSwimmingLaneGroupResult : public ServiceResult { public: + struct Data + { + std::string region11; + int status13; + bool messageQueueGrayEnable; + std::string entryApp10; + std::string _namespace8; + std::string source; + std::string name; + std::string messageQueueFilterSide; + std::string enable; + std::vector applicationList; + bool recordCanaryDetail; + std::string name1; + long id9; + std::string entryApp; + int status; + std::string messageQueueFilterSide5; + std::string _namespace; + std::string source3; + std::string dbGrayEnable; + std::string userId; + std::string region; + std::string dbGrayEnable2; + long id; + std::string enable7; + std::string userId4; + std::string appIds; + std::string appIds6; + bool messageQueueGrayEnable12; + }; CreateOrUpdateSwimmingLaneGroupResult(); explicit CreateOrUpdateSwimmingLaneGroupResult(const std::string &payload); ~CreateOrUpdateSwimmingLaneGroupResult(); + std::string getMessage()const; + Data getData()const; + std::string getErrorCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; + Data data_; + std::string errorCode_; + bool success_; }; } diff --git a/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneRequest.h b/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneRequest.h index c67eee1c9..df91c880a 100644 --- a/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneRequest.h +++ b/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneRequest.h @@ -28,6 +28,22 @@ namespace Mse { namespace Model { class ALIBABACLOUD_MSE_EXPORT CreateOrUpdateSwimmingLaneRequest : public RpcServiceRequest { public: + struct EntryRules { + struct RestItems { + std::string datum; + int divisor; + int rate; + std::string name; + std::string type; + std::string cond; + int remainder; + std::string value; + std::string _operator; + }; + std::vector restItems; + std::string condition; + int priority; + }; struct GatewaySwimmingLaneRouteJson { std::string gatewayUniqueId; long long; @@ -42,40 +58,10 @@ public: std::vector conditions; long gatewayId; }; - struct EntryRules { - struct RestItems { - std::string datum; - int divisor; - int rate; - std::string name; - std::string type; - std::string cond; - int remainder; - std::string value; - std::string _operator; - }; - std::vector restItems; - std::string path; - std::string condition; - bool enable; - int priority; - }; CreateOrUpdateSwimmingLaneRequest(); ~CreateOrUpdateSwimmingLaneRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getSource() const; - void setSource(const std::string &source); - std::string getGmtModified() const; - void setGmtModified(const std::string &gmtModified); - std::string getUserId() const; - void setUserId(const std::string &userId); - std::string getLicenseKey() const; - void setLicenseKey(const std::string &licenseKey); - GatewaySwimmingLaneRouteJson getGatewaySwimmingLaneRouteJson() const; - void setGatewaySwimmingLaneRouteJson(const GatewaySwimmingLaneRouteJson &gatewaySwimmingLaneRouteJson); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getEntryRule() const; void setEntryRule(const std::string &entryRule); bool getEnable() const; @@ -88,36 +74,33 @@ public: void setEntryRules(const std::vector &entryRules); long getGroupId() const; void setGroupId(long groupId); - std::string getGmtCreate() const; - void setGmtCreate(const std::string &gmtCreate); bool getEnableRules() const; void setEnableRules(bool enableRules); std::string getName() const; void setName(const std::string &name); + GatewaySwimmingLaneRouteJson getGatewaySwimmingLaneRouteJson() const; + void setGatewaySwimmingLaneRouteJson(const GatewaySwimmingLaneRouteJson &gatewaySwimmingLaneRouteJson); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - int getStatus() const; - void setStatus(int status); private: std::string mseSessionId_; - std::string source_; - std::string gmtModified_; - std::string userId_; - std::string licenseKey_; - GatewaySwimmingLaneRouteJson gatewaySwimmingLaneRouteJson_; - std::string regionId_; std::string entryRule_; bool enable_; long id_; std::string tag_; std::vector entryRules_; long groupId_; - std::string gmtCreate_; bool enableRules_; std::string name_; + GatewaySwimmingLaneRouteJson gatewaySwimmingLaneRouteJson_; + std::string regionId_; + std::string _namespace_; std::string acceptLanguage_; - int status_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneResult.h b/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneResult.h index 715998e97..f2751a598 100644 --- a/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneResult.h +++ b/mse/include/alibabacloud/mse/model/CreateOrUpdateSwimmingLaneResult.h @@ -32,15 +32,63 @@ namespace AlibabaCloud class ALIBABACLOUD_MSE_EXPORT CreateOrUpdateSwimmingLaneResult : public ServiceResult { public: + struct Data + { + struct EntryRule + { + struct RestItemsItem + { + std::string type; + std::string cond; + std::vector nameList; + std::string datum; + int rate; + std::string value; + std::string _operator; + int divisor; + std::string name; + int remainder; + }; + std::string path; + std::string condition; + std::vector restItems; + std::vector paths; + }; + int status; + std::vector entryRules; + std::string gmtModified; + std::string gatewaySwimmingLaneRouteJson; + std::string name; + long groupId; + std::string entryRule; + std::string gmtCreate; + bool enable; + long id; + std::string tag; + std::string regionId; + bool enableRules; + }; CreateOrUpdateSwimmingLaneResult(); explicit CreateOrUpdateSwimmingLaneResult(const std::string &payload); ~CreateOrUpdateSwimmingLaneResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getErrorCode()const; + int getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string errorCode_; + int code_; + bool success_; }; } diff --git a/mse/include/alibabacloud/mse/model/CreateZnodeRequest.h b/mse/include/alibabacloud/mse/model/CreateZnodeRequest.h index 242ab1e9d..734a7b1c9 100644 --- a/mse/include/alibabacloud/mse/model/CreateZnodeRequest.h +++ b/mse/include/alibabacloud/mse/model/CreateZnodeRequest.h @@ -34,18 +34,18 @@ public: void setMseSessionId(const std::string &mseSessionId); std::string getData() const; void setData(const std::string &data); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); std::string getPath() const; void setPath(const std::string &path); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; std::string data_; - std::string clusterId_; std::string path_; + std::string clusterId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/DeleteAuthResourceRequest.h b/mse/include/alibabacloud/mse/model/DeleteAuthResourceRequest.h index 1bb1e8ac8..993c9fe5e 100644 --- a/mse/include/alibabacloud/mse/model/DeleteAuthResourceRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteAuthResourceRequest.h @@ -34,16 +34,16 @@ public: void setMseSessionId(const std::string &mseSessionId); 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); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; std::string gatewayUniqueId_; - std::string acceptLanguage_; long id_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/DeleteCircuitBreakerRulesRequest.h b/mse/include/alibabacloud/mse/model/DeleteCircuitBreakerRulesRequest.h new file mode 100644 index 000000000..185da79e5 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteCircuitBreakerRulesRequest.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_DELETECIRCUITBREAKERRULESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETECIRCUITBREAKERRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteCircuitBreakerRulesRequest : public RpcServiceRequest { +public: + DeleteCircuitBreakerRulesRequest(); + ~DeleteCircuitBreakerRulesRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::vector getIds() const; + void setIds(const std::vector &ids); + +private: + std::string mseSessionId_; + std::string appName_; + std::string _namespace_; + std::string acceptLanguage_; + std::vector ids_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETECIRCUITBREAKERRULESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteCircuitBreakerRulesResult.h b/mse/include/alibabacloud/mse/model/DeleteCircuitBreakerRulesResult.h new file mode 100644 index 000000000..313c856aa --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteCircuitBreakerRulesResult.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_DELETECIRCUITBREAKERRULESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETECIRCUITBREAKERRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteCircuitBreakerRulesResult : public ServiceResult + { + public: + + + DeleteCircuitBreakerRulesResult(); + explicit DeleteCircuitBreakerRulesResult(const std::string &payload); + ~DeleteCircuitBreakerRulesResult(); + 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_DELETECIRCUITBREAKERRULESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteEngineNamespaceRequest.h b/mse/include/alibabacloud/mse/model/DeleteEngineNamespaceRequest.h index 963bb32cf..e08d3cda5 100644 --- a/mse/include/alibabacloud/mse/model/DeleteEngineNamespaceRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteEngineNamespaceRequest.h @@ -32,21 +32,21 @@ public: ~DeleteEngineNamespaceRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getId() const; + void setId(const std::string &id); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::string getId() const; - void setId(const std::string &id); private: std::string mseSessionId_; + std::string id_; std::string clusterId_; std::string instanceId_; std::string acceptLanguage_; - std::string id_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/DeleteFlowRulesRequest.h b/mse/include/alibabacloud/mse/model/DeleteFlowRulesRequest.h new file mode 100644 index 000000000..b87b1a24c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteFlowRulesRequest.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_DELETEFLOWRULESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEFLOWRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteFlowRulesRequest : public RpcServiceRequest { +public: + DeleteFlowRulesRequest(); + ~DeleteFlowRulesRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::vector getIds() const; + void setIds(const std::vector &ids); + +private: + std::string mseSessionId_; + std::string appName_; + std::string _namespace_; + std::string acceptLanguage_; + std::vector ids_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEFLOWRULESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteFlowRulesResult.h b/mse/include/alibabacloud/mse/model/DeleteFlowRulesResult.h new file mode 100644 index 000000000..1dfb3c5ae --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteFlowRulesResult.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_DELETEFLOWRULESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEFLOWRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteFlowRulesResult : public ServiceResult + { + public: + + + DeleteFlowRulesResult(); + explicit DeleteFlowRulesResult(const std::string &payload); + ~DeleteFlowRulesResult(); + 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_DELETEFLOWRULESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerRequest.h b/mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerRequest.h new file mode 100644 index 000000000..0339c3fe0 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerRequest.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_DELETEGATEWAYAUTHCONSUMERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYAUTHCONSUMERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteGatewayAuthConsumerRequest : public RpcServiceRequest { +public: + DeleteGatewayAuthConsumerRequest(); + ~DeleteGatewayAuthConsumerRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getId() const; + void setId(long id); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + std::string gatewayUniqueId_; + long id_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYAUTHCONSUMERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResourceRequest.h b/mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResourceRequest.h new file mode 100644 index 000000000..9c49dd0db --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResourceRequest.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_DELETEGATEWAYAUTHCONSUMERRESOURCEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYAUTHCONSUMERRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteGatewayAuthConsumerResourceRequest : public RpcServiceRequest { +public: + DeleteGatewayAuthConsumerResourceRequest(); + ~DeleteGatewayAuthConsumerResourceRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getConsumerId() const; + void setConsumerId(long consumerId); + std::string getIdList() const; + void setIdList(const std::string &idList); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + std::string gatewayUniqueId_; + long consumerId_; + std::string idList_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYAUTHCONSUMERRESOURCEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResourceResult.h b/mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResourceResult.h new file mode 100644 index 000000000..007e7c8b4 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResourceResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYAUTHCONSUMERRESOURCERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYAUTHCONSUMERRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteGatewayAuthConsumerResourceResult : public ServiceResult + { + public: + + + DeleteGatewayAuthConsumerResourceResult(); + explicit DeleteGatewayAuthConsumerResourceResult(const std::string &payload); + ~DeleteGatewayAuthConsumerResourceResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + bool getData()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + bool data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYAUTHCONSUMERRESOURCERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResult.h b/mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResult.h new file mode 100644 index 000000000..32bb28df9 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayAuthConsumerResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYAUTHCONSUMERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYAUTHCONSUMERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteGatewayAuthConsumerResult : public ServiceResult + { + public: + + + DeleteGatewayAuthConsumerResult(); + explicit DeleteGatewayAuthConsumerResult(const std::string &payload); + ~DeleteGatewayAuthConsumerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + bool getData()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + bool data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYAUTHCONSUMERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewayDomainRequest.h b/mse/include/alibabacloud/mse/model/DeleteGatewayDomainRequest.h index d6dfe1be4..c700c5e67 100644 --- a/mse/include/alibabacloud/mse/model/DeleteGatewayDomainRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayDomainRequest.h @@ -34,16 +34,16 @@ public: void setMseSessionId(const std::string &mseSessionId); std::string getGatewayUniqueId() const; void setGatewayUniqueId(const std::string &gatewayUniqueId); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::string getId() const; void setId(const std::string &id); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; std::string gatewayUniqueId_; - std::string acceptLanguage_; std::string id_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewaySlbRequest.h b/mse/include/alibabacloud/mse/model/DeleteGatewaySlbRequest.h index 543186f8d..e760b9249 100644 --- a/mse/include/alibabacloud/mse/model/DeleteGatewaySlbRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteGatewaySlbRequest.h @@ -34,6 +34,8 @@ public: void setDeleteSlb(bool deleteSlb); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getSlbId() const; + void setSlbId(const std::string &slbId); std::string getGatewayUniqueId() const; void setGatewayUniqueId(const std::string &gatewayUniqueId); std::string getId() const; @@ -44,6 +46,7 @@ public: private: bool deleteSlb_; std::string mseSessionId_; + std::string slbId_; std::string gatewayUniqueId_; std::string id_; std::string acceptLanguage_; diff --git a/mse/include/alibabacloud/mse/model/DeleteMigrationTaskRequest.h b/mse/include/alibabacloud/mse/model/DeleteMigrationTaskRequest.h index 7bbe2f35e..3a10b4d91 100644 --- a/mse/include/alibabacloud/mse/model/DeleteMigrationTaskRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteMigrationTaskRequest.h @@ -34,16 +34,16 @@ public: void setMseSessionId(const std::string &mseSessionId); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::string getId() const; void setId(const std::string &id); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; std::string requestPars_; - std::string acceptLanguage_; std::string id_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/DeleteNacosConfigRequest.h b/mse/include/alibabacloud/mse/model/DeleteNacosConfigRequest.h index 35334df37..81aa8d51a 100644 --- a/mse/include/alibabacloud/mse/model/DeleteNacosConfigRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteNacosConfigRequest.h @@ -32,27 +32,27 @@ public: ~DeleteNacosConfigRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - std::string getDataId() const; - void setDataId(const std::string &dataId); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); bool getBeta() const; void setBeta(bool beta); std::string getGroup() const; void setGroup(const std::string &group); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDataId() const; + void setDataId(const std::string &dataId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string instanceId_; - std::string dataId_; std::string namespaceId_; - std::string acceptLanguage_; bool beta_; std::string group_; + std::string instanceId_; + std::string dataId_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/DeleteNacosConfigsRequest.h b/mse/include/alibabacloud/mse/model/DeleteNacosConfigsRequest.h index bc4cea4aa..6316286c7 100644 --- a/mse/include/alibabacloud/mse/model/DeleteNacosConfigsRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteNacosConfigsRequest.h @@ -32,10 +32,10 @@ public: ~DeleteNacosConfigsRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); std::string getIds() const; @@ -43,8 +43,8 @@ public: private: std::string mseSessionId_; - std::string instanceId_; std::string namespaceId_; + std::string instanceId_; std::string acceptLanguage_; std::string ids_; }; diff --git a/mse/include/alibabacloud/mse/model/DeleteNacosInstanceRequest.h b/mse/include/alibabacloud/mse/model/DeleteNacosInstanceRequest.h index e97bcdfe8..bff42ad24 100644 --- a/mse/include/alibabacloud/mse/model/DeleteNacosInstanceRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteNacosInstanceRequest.h @@ -34,34 +34,34 @@ public: void setMseSessionId(const std::string &mseSessionId); std::string getClusterName() const; void setClusterName(const std::string &clusterName); - std::string getIp() const; - void setIp(const std::string &ip); bool getEphemeral() const; void setEphemeral(bool ephemeral); + std::string getNamespaceId() const; + void setNamespaceId(const std::string &namespaceId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getIp() const; + void setIp(const std::string &ip); std::string getGroupName() const; void setGroupName(const std::string &groupName); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - std::string getNamespaceId() const; - void setNamespaceId(const std::string &namespaceId); int getPort() const; void setPort(int port); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::string getServiceName() const; - void setServiceName(const std::string &serviceName); private: std::string mseSessionId_; std::string clusterName_; - std::string ip_; bool ephemeral_; + std::string namespaceId_; + std::string serviceName_; + std::string ip_; std::string groupName_; std::string instanceId_; - std::string namespaceId_; int port_; std::string acceptLanguage_; - std::string serviceName_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/DeleteNacosServiceRequest.h b/mse/include/alibabacloud/mse/model/DeleteNacosServiceRequest.h index cc8b1c154..32782f9ff 100644 --- a/mse/include/alibabacloud/mse/model/DeleteNacosServiceRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteNacosServiceRequest.h @@ -32,24 +32,24 @@ public: ~DeleteNacosServiceRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getNamespaceId() const; + void setNamespaceId(const std::string &namespaceId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); std::string getGroupName() const; void setGroupName(const std::string &groupName); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - std::string getNamespaceId() const; - void setNamespaceId(const std::string &namespaceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::string getServiceName() const; - void setServiceName(const std::string &serviceName); private: std::string mseSessionId_; + std::string namespaceId_; + std::string serviceName_; std::string groupName_; std::string instanceId_; - std::string namespaceId_; std::string acceptLanguage_; - std::string serviceName_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/DeleteNamespaceRequest.h b/mse/include/alibabacloud/mse/model/DeleteNamespaceRequest.h new file mode 100644 index 000000000..75b767ee4 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteNamespaceRequest.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_DELETENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETENAMESPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteNamespaceRequest : public RpcServiceRequest { +public: + DeleteNamespaceRequest(); + ~DeleteNamespaceRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string mseSessionId_; + std::string name_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETENAMESPACEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteNamespaceResult.h b/mse/include/alibabacloud/mse/model/DeleteNamespaceResult.h new file mode 100644 index 000000000..df7cc77ef --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteNamespaceResult.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_DELETENAMESPACERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteNamespaceResult : public ServiceResult + { + public: + + + DeleteNamespaceResult(); + explicit DeleteNamespaceResult(const std::string &payload); + ~DeleteNamespaceResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETENAMESPACERESULT_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 index 0658c8c6f..0a69fe0be 100644 --- a/mse/include/alibabacloud/mse/model/DeleteSecurityGroupRuleRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteSecurityGroupRuleRequest.h @@ -34,16 +34,16 @@ public: void setMseSessionId(const std::string &mseSessionId); 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); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; std::string gatewayUniqueId_; - std::string acceptLanguage_; long id_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/DeleteServiceSourceRequest.h b/mse/include/alibabacloud/mse/model/DeleteServiceSourceRequest.h index bb942ed8b..edf1f5121 100644 --- a/mse/include/alibabacloud/mse/model/DeleteServiceSourceRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteServiceSourceRequest.h @@ -30,19 +30,19 @@ class ALIBABACLOUD_MSE_EXPORT DeleteServiceSourceRequest : public RpcServiceRequ public: DeleteServiceSourceRequest(); ~DeleteServiceSourceRequest(); - long getSourceId() const; - void setSourceId(long sourceId); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); std::string getGatewayUniqueId() const; void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getSourceId() const; + void setSourceId(long sourceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: - long sourceId_; std::string mseSessionId_; std::string gatewayUniqueId_; + long sourceId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/DeleteSwimmingLaneGroupRequest.h b/mse/include/alibabacloud/mse/model/DeleteSwimmingLaneGroupRequest.h index 11605f47c..dde1d7a2a 100644 --- a/mse/include/alibabacloud/mse/model/DeleteSwimmingLaneGroupRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteSwimmingLaneGroupRequest.h @@ -34,13 +34,22 @@ public: void setMseSessionId(const std::string &mseSessionId); long getGroupId() const; void setGroupId(long groupId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getName() const; + void setName(const std::string &name); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); private: std::string mseSessionId_; long groupId_; + std::string _namespace_; + std::string name_; std::string acceptLanguage_; + std::string region_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/DeleteSwimmingLaneRequest.h b/mse/include/alibabacloud/mse/model/DeleteSwimmingLaneRequest.h index 953fae59c..6544920bc 100644 --- a/mse/include/alibabacloud/mse/model/DeleteSwimmingLaneRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteSwimmingLaneRequest.h @@ -34,12 +34,15 @@ public: void setMseSessionId(const std::string &mseSessionId); long getLaneId() const; void setLaneId(long laneId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; long laneId_; + std::string _namespace_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/DeleteZnodeRequest.h b/mse/include/alibabacloud/mse/model/DeleteZnodeRequest.h index c82b3f485..0f7d87b6b 100644 --- a/mse/include/alibabacloud/mse/model/DeleteZnodeRequest.h +++ b/mse/include/alibabacloud/mse/model/DeleteZnodeRequest.h @@ -32,20 +32,20 @@ public: ~DeleteZnodeRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); std::string getPath() const; void setPath(const std::string &path); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string clusterId_; std::string path_; std::string requestPars_; + std::string clusterId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/ExportNacosConfigRequest.h b/mse/include/alibabacloud/mse/model/ExportNacosConfigRequest.h index 38f18dd17..a7b5d1db2 100644 --- a/mse/include/alibabacloud/mse/model/ExportNacosConfigRequest.h +++ b/mse/include/alibabacloud/mse/model/ExportNacosConfigRequest.h @@ -32,30 +32,33 @@ public: ~ExportNacosConfigRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - std::string getDataId() const; - void setDataId(const std::string &dataId); + std::string getDataIds() const; + void setDataIds(const std::string &dataIds); std::string getAppName() const; void setAppName(const std::string &appName); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); + std::string getGroup() const; + void setGroup(const std::string &group); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDataId() const; + void setDataId(const std::string &dataId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); std::string getIds() const; void setIds(const std::string &ids); - std::string getGroup() const; - void setGroup(const std::string &group); private: std::string mseSessionId_; - std::string instanceId_; - std::string dataId_; + std::string dataIds_; std::string appName_; std::string namespaceId_; + std::string group_; + std::string instanceId_; + std::string dataId_; std::string acceptLanguage_; std::string ids_; - std::string group_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/ExportZookeeperDataRequest.h b/mse/include/alibabacloud/mse/model/ExportZookeeperDataRequest.h new file mode 100644 index 000000000..90372d759 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ExportZookeeperDataRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_EXPORTZOOKEEPERDATAREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_EXPORTZOOKEEPERDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ExportZookeeperDataRequest : public RpcServiceRequest { +public: + ExportZookeeperDataRequest(); + ~ExportZookeeperDataRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); + std::string getExportType() const; + void setExportType(const std::string &exportType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + std::string regionId_; + std::string requestPars_; + std::string exportType_; + std::string instanceId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_EXPORTZOOKEEPERDATAREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ExportZookeeperDataResult.h b/mse/include/alibabacloud/mse/model/ExportZookeeperDataResult.h new file mode 100644 index 000000000..03c9d45bb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ExportZookeeperDataResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_EXPORTZOOKEEPERDATARESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_EXPORTZOOKEEPERDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ExportZookeeperDataResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string instanceId; + std::string contentMap; + std::string extend; + std::string exportType; + long createTime; + long updateTime; + int id; + std::string kubeoneTaskIds; + }; + + + ExportZookeeperDataResult(); + explicit ExportZookeeperDataResult(const std::string &payload); + ~ExportZookeeperDataResult(); + std::string getMessage()const; + std::string getHttpStatusCode()const; + Data getData()const; + std::string getDynamicMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string httpStatusCode_; + Data data_; + std::string dynamicMessage_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_EXPORTZOOKEEPERDATARESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/FetchLosslessRuleListRequest.h b/mse/include/alibabacloud/mse/model/FetchLosslessRuleListRequest.h new file mode 100644 index 000000000..218c6a46d --- /dev/null +++ b/mse/include/alibabacloud/mse/model/FetchLosslessRuleListRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_FETCHLOSSLESSRULELISTREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_FETCHLOSSLESSRULELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT FetchLosslessRuleListRequest : public RpcServiceRequest { +public: + FetchLosslessRuleListRequest(); + ~FetchLosslessRuleListRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + int pageNumber_; + std::string appName_; + std::string regionId_; + int pageSize_; + std::string appId_; + std::string _namespace_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_FETCHLOSSLESSRULELISTREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/FetchLosslessRuleListResult.h b/mse/include/alibabacloud/mse/model/FetchLosslessRuleListResult.h new file mode 100644 index 000000000..b45f6ae7c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/FetchLosslessRuleListResult.h @@ -0,0 +1,82 @@ +/* + * 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_FETCHLOSSLESSRULELISTRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_FETCHLOSSLESSRULELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT FetchLosslessRuleListResult : public ServiceResult + { + public: + struct Data + { + struct ApplicationList + { + bool related; + std::string appId; + int warmupTime; + bool notice; + int funcType; + bool enable; + int count; + int delayTime; + bool aligned; + bool lossLessDetail; + std::string appName; + }; + int pageSize; + std::vector results; + int pageNumber; + int totalSize; + }; + + + FetchLosslessRuleListResult(); + explicit FetchLosslessRuleListResult(const std::string &payload); + ~FetchLosslessRuleListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getErrorCode()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string errorCode_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_FETCHLOSSLESSRULELISTRESULT_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 index fbd923119..8467d2fcc 100644 --- a/mse/include/alibabacloud/mse/model/GetAppMessageQueueRouteRequest.h +++ b/mse/include/alibabacloud/mse/model/GetAppMessageQueueRouteRequest.h @@ -32,8 +32,12 @@ public: ~GetAppMessageQueueRouteRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getAppName() const; + void setAppName(const std::string &appName); std::string getAppId() const; void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); std::string getRegion() const; @@ -41,7 +45,9 @@ public: private: std::string mseSessionId_; + std::string appName_; std::string appId_; + std::string _namespace_; std::string acceptLanguage_; std::string region_; }; diff --git a/mse/include/alibabacloud/mse/model/GetApplicationListResult.h b/mse/include/alibabacloud/mse/model/GetApplicationListResult.h index f3432b364..3fdb76f6b 100644 --- a/mse/include/alibabacloud/mse/model/GetApplicationListResult.h +++ b/mse/include/alibabacloud/mse/model/GetApplicationListResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud { long status; int instancesNumber; + long tagCount; std::string appId; std::string language; std::string userId; @@ -61,6 +62,7 @@ namespace AlibabaCloud std::string getMessage()const; int getHttpStatusCode()const; Data getData()const; + std::string getErrorCode()const; int getCode()const; bool getSuccess()const; @@ -70,6 +72,7 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; Data data_; + std::string errorCode_; int code_; bool success_; diff --git a/mse/include/alibabacloud/mse/model/GetApplicationListWithMetircsResult.h b/mse/include/alibabacloud/mse/model/GetApplicationListWithMetircsResult.h index b05dc5614..afce5fec9 100644 --- a/mse/include/alibabacloud/mse/model/GetApplicationListWithMetircsResult.h +++ b/mse/include/alibabacloud/mse/model/GetApplicationListWithMetircsResult.h @@ -58,16 +58,18 @@ namespace AlibabaCloud }; long status; int instancesNumber; - std::string extraInfo; std::string _namespace; + std::string extraInfo; std::string source; std::string appName; + long tagCount; std::string appId; std::string language; std::vector curMetrics; std::string userId; std::string regionId; CurMetricsFm curMetricsFm; + int appType; std::vector tags; std::string licenseKey; }; diff --git a/mse/include/alibabacloud/mse/model/GetEngineNamepaceRequest.h b/mse/include/alibabacloud/mse/model/GetEngineNamepaceRequest.h index e73c1e3d7..69acd60dd 100644 --- a/mse/include/alibabacloud/mse/model/GetEngineNamepaceRequest.h +++ b/mse/include/alibabacloud/mse/model/GetEngineNamepaceRequest.h @@ -32,21 +32,21 @@ public: ~GetEngineNamepaceRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getId() const; + void setId(const std::string &id); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::string getId() const; - void setId(const std::string &id); private: std::string mseSessionId_; + std::string id_; std::string clusterId_; std::string instanceId_; std::string acceptLanguage_; - std::string id_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/GetGatewayAuthConsumerDetailRequest.h b/mse/include/alibabacloud/mse/model/GetGatewayAuthConsumerDetailRequest.h new file mode 100644 index 000000000..caa3a281a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGatewayAuthConsumerDetailRequest.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_GETGATEWAYAUTHCONSUMERDETAILREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGATEWAYAUTHCONSUMERDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetGatewayAuthConsumerDetailRequest : public RpcServiceRequest { +public: + GetGatewayAuthConsumerDetailRequest(); + ~GetGatewayAuthConsumerDetailRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getId() const; + void setId(long id); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + std::string gatewayUniqueId_; + long id_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETGATEWAYAUTHCONSUMERDETAILREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetGatewayAuthConsumerDetailResult.h b/mse/include/alibabacloud/mse/model/GetGatewayAuthConsumerDetailResult.h new file mode 100644 index 000000000..ec9c3b69c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGatewayAuthConsumerDetailResult.h @@ -0,0 +1,97 @@ +/* + * 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_GETGATEWAYAUTHCONSUMERDETAILRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGATEWAYAUTHCONSUMERDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetGatewayAuthConsumerDetailResult : public ServiceResult + { + public: + struct Data + { + struct Resource + { + std::string gatewayUniqueId; + std::string gmtCreate; + long consumerId; + std::string gmtModified; + std::string routeName; + bool resourceStatus; + long id; + long routeId; + }; + std::string description; + std::string keyValue; + std::string encodeType; + std::string gmtModified; + std::string tokenPosition; + std::string name; + std::string keyName; + std::string gatewayUniqueId; + std::string tokenPrefix; + std::vector resourceList; + std::string type; + std::string gmtCreate; + bool tokenPass; + std::string jwks; + bool consumerStatus; + std::string primaryUser; + std::string tokenName; + long id; + }; + + + GetGatewayAuthConsumerDetailResult(); + explicit GetGatewayAuthConsumerDetailResult(const std::string &payload); + ~GetGatewayAuthConsumerDetailResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_GETGATEWAYAUTHCONSUMERDETAILRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetGatewayDomainDetailRequest.h b/mse/include/alibabacloud/mse/model/GetGatewayDomainDetailRequest.h index ce948a4d4..74c523eba 100644 --- a/mse/include/alibabacloud/mse/model/GetGatewayDomainDetailRequest.h +++ b/mse/include/alibabacloud/mse/model/GetGatewayDomainDetailRequest.h @@ -34,16 +34,16 @@ public: void setMseSessionId(const std::string &mseSessionId); std::string getGatewayUniqueId() const; void setGatewayUniqueId(const std::string &gatewayUniqueId); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::string getId() const; void setId(const std::string &id); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; std::string gatewayUniqueId_; - std::string acceptLanguage_; std::string id_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/GetGatewayResult.h b/mse/include/alibabacloud/mse/model/GetGatewayResult.h index 5cbcf2de9..39052adff 100644 --- a/mse/include/alibabacloud/mse/model/GetGatewayResult.h +++ b/mse/include/alibabacloud/mse/model/GetGatewayResult.h @@ -45,28 +45,45 @@ namespace AlibabaCloud std::string projectName; bool logEnabled; }; - int status; + struct ElasticPolicy + { + struct TimePolicyListItem + { + std::string endTime; + std::string startTime; + int desiredReplica; + }; + std::string elasticType; + int maxReplica; + std::vector timePolicyList; + }; + std::string elasticType; std::string resourceGroupId; - std::string instanceId; XtraceDetails xtraceDetails; std::string vpc; std::string gmtModified; std::string vswitch2; + std::string name; + std::string statusDesc; + std::string mseTag; + bool elastic; + std::string vswitch; + LogConfigDetails logConfigDetails; + int status; + std::string instanceId; + ElasticPolicy elasticPolicy; + int totalReplica; std::string securityGroup; int replica; std::string endDate; - std::string name; std::string gatewayUniqueId; - std::string statusDesc; std::string gmtCreate; - std::string mseTag; std::string chargeType; std::string region; std::string primaryUser; - std::string vswitch; long id; std::string spec; - LogConfigDetails logConfigDetails; + int elasticReplica; }; diff --git a/mse/include/alibabacloud/mse/model/GetGatewayRouteDetailResult.h b/mse/include/alibabacloud/mse/model/GetGatewayRouteDetailResult.h index 2f820d6d7..80a0ac829 100644 --- a/mse/include/alibabacloud/mse/model/GetGatewayRouteDetailResult.h +++ b/mse/include/alibabacloud/mse/model/GetGatewayRouteDetailResult.h @@ -141,6 +141,7 @@ namespace AlibabaCloud long serviceId; std::string name; }; + std::string policies; std::string gmtModified; std::string destinationType; HeaderOp headerOp; diff --git a/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterRequest.h b/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterRequest.h index f85fab836..01e6f7754 100644 --- a/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterRequest.h +++ b/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterRequest.h @@ -32,17 +32,17 @@ public: ~GetGovernanceKubernetesClusterRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string clusterId_; std::string regionId_; + std::string clusterId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/GetImageRequest.h b/mse/include/alibabacloud/mse/model/GetImageRequest.h index dc86bb4f0..0049ed096 100644 --- a/mse/include/alibabacloud/mse/model/GetImageRequest.h +++ b/mse/include/alibabacloud/mse/model/GetImageRequest.h @@ -32,15 +32,15 @@ public: ~GetImageRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::string getVersionCode() const; void setVersionCode(const std::string &versionCode); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string acceptLanguage_; std::string versionCode_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/GetImportFileUrlRequest.h b/mse/include/alibabacloud/mse/model/GetImportFileUrlRequest.h index b37e8f4a7..b2713b2b6 100644 --- a/mse/include/alibabacloud/mse/model/GetImportFileUrlRequest.h +++ b/mse/include/alibabacloud/mse/model/GetImportFileUrlRequest.h @@ -32,20 +32,20 @@ public: ~GetImportFileUrlRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getNamespaceId() const; + void setNamespaceId(const std::string &namespaceId); std::string getContentType() const; void setContentType(const std::string &contentType); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - std::string getNamespaceId() const; - void setNamespaceId(const std::string &namespaceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; + std::string namespaceId_; std::string contentType_; std::string instanceId_; - std::string namespaceId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/GetKubernetesSourceRequest.h b/mse/include/alibabacloud/mse/model/GetKubernetesSourceRequest.h index 3118f2ab4..3b9d7cc2d 100644 --- a/mse/include/alibabacloud/mse/model/GetKubernetesSourceRequest.h +++ b/mse/include/alibabacloud/mse/model/GetKubernetesSourceRequest.h @@ -34,6 +34,8 @@ public: void setMseSessionId(const std::string &mseSessionId); std::string getGatewayUniqueId() const; void setGatewayUniqueId(const std::string &gatewayUniqueId); + bool getIsAll() const; + void setIsAll(bool isAll); std::string getVpcId() const; void setVpcId(const std::string &vpcId); std::string getAcceptLanguage() const; @@ -42,6 +44,7 @@ public: private: std::string mseSessionId_; std::string gatewayUniqueId_; + bool isAll_; std::string vpcId_; std::string acceptLanguage_; }; diff --git a/mse/include/alibabacloud/mse/model/GetLosslessRuleByAppRequest.h b/mse/include/alibabacloud/mse/model/GetLosslessRuleByAppRequest.h new file mode 100644 index 000000000..929dbc4e4 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetLosslessRuleByAppRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETLOSSLESSRULEBYAPPREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETLOSSLESSRULEBYAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetLosslessRuleByAppRequest : public RpcServiceRequest { +public: + GetLosslessRuleByAppRequest(); + ~GetLosslessRuleByAppRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + std::string appName_; + std::string regionId_; + std::string appId_; + std::string _namespace_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETLOSSLESSRULEBYAPPREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetLosslessRuleByAppResult.h b/mse/include/alibabacloud/mse/model/GetLosslessRuleByAppResult.h new file mode 100644 index 000000000..98cec270f --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetLosslessRuleByAppResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETLOSSLESSRULEBYAPPRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETLOSSLESSRULEBYAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetLosslessRuleByAppResult : public ServiceResult + { + public: + struct Data + { + bool related; + std::string appId; + int warmupTime; + bool notice; + int funcType; + bool enable; + int count; + int delayTime; + bool aligned; + bool lossLessDetail; + std::string appName; + }; + + + GetLosslessRuleByAppResult(); + explicit GetLosslessRuleByAppResult(const std::string &payload); + ~GetLosslessRuleByAppResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getErrorCode()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string errorCode_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_GETLOSSLESSRULEBYAPPRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetNacosConfigRequest.h b/mse/include/alibabacloud/mse/model/GetNacosConfigRequest.h index cf19d8124..25d73b5d0 100644 --- a/mse/include/alibabacloud/mse/model/GetNacosConfigRequest.h +++ b/mse/include/alibabacloud/mse/model/GetNacosConfigRequest.h @@ -32,27 +32,27 @@ public: ~GetNacosConfigRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - std::string getDataId() const; - void setDataId(const std::string &dataId); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); bool getBeta() const; void setBeta(bool beta); std::string getGroup() const; void setGroup(const std::string &group); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDataId() const; + void setDataId(const std::string &dataId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string instanceId_; - std::string dataId_; std::string namespaceId_; - std::string acceptLanguage_; bool beta_; std::string group_; + std::string instanceId_; + std::string dataId_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/GetNacosHistoryConfigRequest.h b/mse/include/alibabacloud/mse/model/GetNacosHistoryConfigRequest.h index 1d4d6220e..09f093908 100644 --- a/mse/include/alibabacloud/mse/model/GetNacosHistoryConfigRequest.h +++ b/mse/include/alibabacloud/mse/model/GetNacosHistoryConfigRequest.h @@ -34,25 +34,25 @@ public: void setMseSessionId(const std::string &mseSessionId); std::string getNid() const; void setNid(const std::string &nid); + std::string getNamespaceId() const; + void setNamespaceId(const std::string &namespaceId); + std::string getGroup() const; + void setGroup(const std::string &group); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); std::string getDataId() const; void setDataId(const std::string &dataId); - std::string getNamespaceId() const; - void setNamespaceId(const std::string &namespaceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::string getGroup() const; - void setGroup(const std::string &group); private: std::string mseSessionId_; std::string nid_; + std::string namespaceId_; + std::string group_; std::string instanceId_; std::string dataId_; - std::string namespaceId_; std::string acceptLanguage_; - std::string group_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/GetServiceListPageRequest.h b/mse/include/alibabacloud/mse/model/GetServiceListPageRequest.h new file mode 100644 index 000000000..3620f86f5 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetServiceListPageRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETSERVICELISTPAGEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETSERVICELISTPAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetServiceListPageRequest : public RpcServiceRequest { +public: + GetServiceListPageRequest(); + ~GetServiceListPageRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getSide() const; + void setSide(const std::string &side); + std::string getIp() const; + void setIp(const std::string &ip); + std::string getServiceType() const; + void setServiceType(const std::string &serviceType); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string mseSessionId_; + int pageNumber_; + int pageSize_; + std::string serviceName_; + std::string side_; + std::string ip_; + std::string serviceType_; + std::string appId_; + std::string _namespace_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETSERVICELISTPAGEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetServiceListPageResult.h b/mse/include/alibabacloud/mse/model/GetServiceListPageResult.h new file mode 100644 index 000000000..5de871909 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetServiceListPageResult.h @@ -0,0 +1,80 @@ +/* + * 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_GETSERVICELISTPAGERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETSERVICELISTPAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetServiceListPageResult : public ServiceResult + { + public: + struct Data + { + struct MscServiceResponse + { + std::string group; + std::string edasAppId; + std::string gmtModifyTime; + std::string appId; + std::string version; + std::string serviceName; + std::string edasAppName; + std::string clusterName; + int instanceNum; + std::string appName; + }; + std::string pageSize; + std::string currentPage; + std::string pageNumber; + std::string totalSize; + std::vector result; + }; + + + GetServiceListPageResult(); + explicit GetServiceListPageResult(const std::string &payload); + ~GetServiceListPageResult(); + 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_GETSERVICELISTPAGERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetServiceListenersRequest.h b/mse/include/alibabacloud/mse/model/GetServiceListenersRequest.h index 8c4584985..048912ca6 100644 --- a/mse/include/alibabacloud/mse/model/GetServiceListenersRequest.h +++ b/mse/include/alibabacloud/mse/model/GetServiceListenersRequest.h @@ -38,22 +38,22 @@ public: void setPageNum(int pageNum); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); - std::string getRequestPars() const; - void setRequestPars(const std::string &requestPars); std::string getServiceName() const; void setServiceName(const std::string &serviceName); std::string getClusterId() const; void setClusterId(const std::string &clusterId); - std::string getGroupName() const; - void setGroupName(const std::string &groupName); std::string getHasIpCount() const; void setHasIpCount(const std::string &hasIpCount); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); @@ -62,14 +62,14 @@ private: std::string clusterName_; int pageNum_; std::string namespaceId_; + std::string requestPars_; + std::string groupName_; + std::string instanceId_; std::string regionId_; int pageSize_; - std::string requestPars_; std::string serviceName_; std::string clusterId_; - std::string groupName_; std::string hasIpCount_; - std::string instanceId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/GetServiceMethodPageRequest.h b/mse/include/alibabacloud/mse/model/GetServiceMethodPageRequest.h new file mode 100644 index 000000000..1a5b96a38 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetServiceMethodPageRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETSERVICEMETHODPAGEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETSERVICEMETHODPAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetServiceMethodPageRequest : public RpcServiceRequest { +public: + GetServiceMethodPageRequest(); + ~GetServiceMethodPageRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getServiceGroup() const; + void setServiceGroup(const std::string &serviceGroup); + std::string getPath() const; + void setPath(const std::string &path); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getIp() const; + void setIp(const std::string &ip); + std::string getServiceVersion() const; + void setServiceVersion(const std::string &serviceVersion); + std::string getName() const; + void setName(const std::string &name); + std::string getRegion() const; + void setRegion(const std::string ®ion); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getServiceType() const; + void setServiceType(const std::string &serviceType); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getMethodController() const; + void setMethodController(const std::string &methodController); + +private: + std::string mseSessionId_; + std::string serviceGroup_; + std::string path_; + std::string appName_; + std::string ip_; + std::string serviceVersion_; + std::string name_; + std::string region_; + int pageNumber_; + int pageSize_; + std::string serviceName_; + std::string serviceType_; + std::string appId_; + std::string acceptLanguage_; + std::string methodController_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETSERVICEMETHODPAGEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetServiceMethodPageResult.h b/mse/include/alibabacloud/mse/model/GetServiceMethodPageResult.h new file mode 100644 index 000000000..9d6f4a1bb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetServiceMethodPageResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETSERVICEMETHODPAGERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETSERVICEMETHODPAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetServiceMethodPageResult : public ServiceResult + { + public: + struct Data + { + struct Method + { + struct ParameterDefinition + { + std::string type; + std::string description; + std::string name; + }; + std::vector parameterDefinitions; + std::vector parameterDetails; + std::string methodController; + std::vector paths; + std::vector parameterTypes; + std::vector requestMethods; + std::string returnType; + std::string returnDetails; + std::string nameDetail; + std::string name; + }; + int pageSize; + int pageNumber; + int totalSize; + std::vector result; + }; + + + GetServiceMethodPageResult(); + explicit GetServiceMethodPageResult(const std::string &payload); + ~GetServiceMethodPageResult(); + 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_GETSERVICEMETHODPAGERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetTagsBySwimmingLaneGroupIdRequest.h b/mse/include/alibabacloud/mse/model/GetTagsBySwimmingLaneGroupIdRequest.h index d1729bd8d..9325b8ec5 100644 --- a/mse/include/alibabacloud/mse/model/GetTagsBySwimmingLaneGroupIdRequest.h +++ b/mse/include/alibabacloud/mse/model/GetTagsBySwimmingLaneGroupIdRequest.h @@ -34,12 +34,15 @@ public: void setMseSessionId(const std::string &mseSessionId); long getGroupId() const; void setGroupId(long groupId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; long groupId_; + std::string _namespace_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/GetTagsBySwimmingLaneGroupIdResult.h b/mse/include/alibabacloud/mse/model/GetTagsBySwimmingLaneGroupIdResult.h index 9459047d9..21f480ce9 100644 --- a/mse/include/alibabacloud/mse/model/GetTagsBySwimmingLaneGroupIdResult.h +++ b/mse/include/alibabacloud/mse/model/GetTagsBySwimmingLaneGroupIdResult.h @@ -37,10 +37,18 @@ namespace AlibabaCloud GetTagsBySwimmingLaneGroupIdResult(); explicit GetTagsBySwimmingLaneGroupIdResult(const std::string &payload); ~GetTagsBySwimmingLaneGroupIdResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getErrorCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; + std::vector data_; + std::string errorCode_; + bool success_; }; } diff --git a/mse/include/alibabacloud/mse/model/ImportNacosConfigRequest.h b/mse/include/alibabacloud/mse/model/ImportNacosConfigRequest.h index 18e25c68a..29e6a5d5f 100644 --- a/mse/include/alibabacloud/mse/model/ImportNacosConfigRequest.h +++ b/mse/include/alibabacloud/mse/model/ImportNacosConfigRequest.h @@ -32,24 +32,24 @@ public: ~ImportNacosConfigRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); std::string getFileUrl() const; void setFileUrl(const std::string &fileUrl); - std::string getPolicy() const; - void setPolicy(const std::string &policy); private: std::string mseSessionId_; - std::string instanceId_; std::string namespaceId_; + std::string policy_; + std::string instanceId_; std::string acceptLanguage_; std::string fileUrl_; - std::string policy_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/ImportServicesRequest.h b/mse/include/alibabacloud/mse/model/ImportServicesRequest.h index 012ac2357..544a5e3a3 100644 --- a/mse/include/alibabacloud/mse/model/ImportServicesRequest.h +++ b/mse/include/alibabacloud/mse/model/ImportServicesRequest.h @@ -49,6 +49,10 @@ public: void setTlsSetting(const std::string &tlsSetting); std::string getSourceType() const; void setSourceType(const std::string &sourceType); + std::string getFcServiceName() const; + void setFcServiceName(const std::string &fcServiceName); + std::string getFcVersion() const; + void setFcVersion(const std::string &fcVersion); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); @@ -58,6 +62,8 @@ private: std::vector serviceList_; std::string tlsSetting_; std::string sourceType_; + std::string fcServiceName_; + std::string fcVersion_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/ImportZookeeperDataRequest.h b/mse/include/alibabacloud/mse/model/ImportZookeeperDataRequest.h index fb1a7b8dc..2f44b5813 100644 --- a/mse/include/alibabacloud/mse/model/ImportZookeeperDataRequest.h +++ b/mse/include/alibabacloud/mse/model/ImportZookeeperDataRequest.h @@ -32,14 +32,14 @@ public: ~ImportZookeeperDataRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - std::string getFileName() const; - void setFileName(const std::string &fileName); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getFileName() const; + void setFileName(const std::string &fileName); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); std::string getFileUrl() const; @@ -47,10 +47,10 @@ public: private: std::string mseSessionId_; - std::string instanceId_; - std::string fileName_; std::string regionId_; std::string requestPars_; + std::string instanceId_; + std::string fileName_; std::string acceptLanguage_; std::string fileUrl_; }; diff --git a/mse/include/alibabacloud/mse/model/ListAnsServiceClustersRequest.h b/mse/include/alibabacloud/mse/model/ListAnsServiceClustersRequest.h index d26822c14..b73332fa9 100644 --- a/mse/include/alibabacloud/mse/model/ListAnsServiceClustersRequest.h +++ b/mse/include/alibabacloud/mse/model/ListAnsServiceClustersRequest.h @@ -38,8 +38,6 @@ public: void setPageNum(int pageNum); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); - std::string getRequestPars() const; - void setRequestPars(const std::string &requestPars); int getPageSize() const; void setPageSize(int pageSize); std::string getServiceName() const; @@ -58,7 +56,6 @@ private: std::string clusterName_; int pageNum_; std::string namespaceId_; - std::string requestPars_; int pageSize_; std::string serviceName_; std::string clusterId_; diff --git a/mse/include/alibabacloud/mse/model/ListAnsServiceClustersResult.h b/mse/include/alibabacloud/mse/model/ListAnsServiceClustersResult.h index c89bc3bf2..485adde93 100644 --- a/mse/include/alibabacloud/mse/model/ListAnsServiceClustersResult.h +++ b/mse/include/alibabacloud/mse/model/ListAnsServiceClustersResult.h @@ -34,6 +34,18 @@ namespace AlibabaCloud public: struct Data { + struct AppDetail + { + std::string appId; + int checkTimeout; + std::string checkType; + int unhealthyCheckTimes; + int port; + int healthyCheckTimes; + int checkInternal; + std::string appName; + std::string checkPath; + }; struct NacosAnsCluster { int defaultCheckPort; @@ -50,6 +62,8 @@ namespace AlibabaCloud std::string metadata; float protectThreshold; bool ephemeral; + AppDetail appDetail; + std::string source; std::string name; }; @@ -57,6 +71,7 @@ namespace AlibabaCloud ListAnsServiceClustersResult(); explicit ListAnsServiceClustersResult(const std::string &payload); ~ListAnsServiceClustersResult(); + std::string getHttpCode()const; std::string getMessage()const; Data getData()const; std::string getErrorCode()const; @@ -65,6 +80,7 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: + std::string httpCode_; std::string message_; Data data_; std::string errorCode_; diff --git a/mse/include/alibabacloud/mse/model/ListAnsServicesRequest.h b/mse/include/alibabacloud/mse/model/ListAnsServicesRequest.h index 3734ea2a8..3c4a89dfd 100644 --- a/mse/include/alibabacloud/mse/model/ListAnsServicesRequest.h +++ b/mse/include/alibabacloud/mse/model/ListAnsServicesRequest.h @@ -32,38 +32,44 @@ public: ~ListAnsServicesRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getClusterName() const; + void setClusterName(const std::string &clusterName); int getPageNum() const; void setPageNum(int pageNum); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); std::string getServiceName() const; void setServiceName(const std::string &serviceName); std::string getClusterId() const; void setClusterId(const std::string &clusterId); - std::string getGroupName() const; - void setGroupName(const std::string &groupName); std::string getHasIpCount() const; void setHasIpCount(const std::string &hasIpCount); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; + std::string clusterName_; int pageNum_; std::string namespaceId_; std::string requestPars_; + std::string groupName_; + std::string instanceId_; + std::string regionId_; int pageSize_; std::string serviceName_; std::string clusterId_; - std::string groupName_; std::string hasIpCount_; - std::string instanceId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/ListAnsServicesResult.h b/mse/include/alibabacloud/mse/model/ListAnsServicesResult.h index faa597b07..805f18a37 100644 --- a/mse/include/alibabacloud/mse/model/ListAnsServicesResult.h +++ b/mse/include/alibabacloud/mse/model/ListAnsServicesResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud int ipCount; int healthyInstanceCount; int clusterCount; + std::string source; std::string name; }; diff --git a/mse/include/alibabacloud/mse/model/ListAppBySwimmingLaneGroupTagRequest.h b/mse/include/alibabacloud/mse/model/ListAppBySwimmingLaneGroupTagRequest.h index 47ba3a383..a2a4f8ab7 100644 --- a/mse/include/alibabacloud/mse/model/ListAppBySwimmingLaneGroupTagRequest.h +++ b/mse/include/alibabacloud/mse/model/ListAppBySwimmingLaneGroupTagRequest.h @@ -32,18 +32,21 @@ public: ~ListAppBySwimmingLaneGroupTagRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - long getGroupId() const; - void setGroupId(long groupId); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::string getTag() const; void setTag(const std::string &tag); + long getGroupId() const; + void setGroupId(long groupId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - long groupId_; - std::string acceptLanguage_; std::string tag_; + long groupId_; + std::string _namespace_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/ListApplicationsWithTagRulesRequest.h b/mse/include/alibabacloud/mse/model/ListApplicationsWithTagRulesRequest.h index 01e38b829..d3bc0e90d 100644 --- a/mse/include/alibabacloud/mse/model/ListApplicationsWithTagRulesRequest.h +++ b/mse/include/alibabacloud/mse/model/ListApplicationsWithTagRulesRequest.h @@ -38,10 +38,12 @@ public: void setPageNumber(int pageNumber); std::string getAppName() const; void setAppName(const std::string &appName); - std::string getAppId() const; - void setAppId(const std::string &appId); int getPageSize() const; void setPageSize(int pageSize); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); std::string getRegion() const; @@ -52,8 +54,9 @@ private: std::string source_; int pageNumber_; std::string appName_; - std::string appId_; int pageSize_; + std::string appId_; + std::string _namespace_; std::string acceptLanguage_; std::string region_; }; diff --git a/mse/include/alibabacloud/mse/model/ListApplicationsWithTagRulesResult.h b/mse/include/alibabacloud/mse/model/ListApplicationsWithTagRulesResult.h index 0b8bbab7e..6ad5870e8 100644 --- a/mse/include/alibabacloud/mse/model/ListApplicationsWithTagRulesResult.h +++ b/mse/include/alibabacloud/mse/model/ListApplicationsWithTagRulesResult.h @@ -51,6 +51,7 @@ namespace AlibabaCloud std::string name; }; std::string appId; + std::string _namespace; long routeStatus; std::vector routeRules; std::string appName; @@ -68,7 +69,6 @@ namespace AlibabaCloud std::string getMessage()const; int getHttpStatusCode()const; Data getData()const; - int getCode()const; bool getSuccess()const; protected: @@ -77,7 +77,6 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; Data data_; - int code_; bool success_; }; diff --git a/mse/include/alibabacloud/mse/model/ListAuthPolicyRequest.h b/mse/include/alibabacloud/mse/model/ListAuthPolicyRequest.h new file mode 100644 index 000000000..5deb4c8d7 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAuthPolicyRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTAUTHPOLICYREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTAUTHPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListAuthPolicyRequest : public RpcServiceRequest { +public: + ListAuthPolicyRequest(); + ~ListAuthPolicyRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getSource() const; + void setSource(const std::string &source); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getName() const; + void setName(const std::string &name); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string mseSessionId_; + std::string source_; + std::string pageNumber_; + std::string protocol_; + std::string pageSize_; + std::string appId_; + std::string name_; + std::string _namespace_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTAUTHPOLICYREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListAuthPolicyResult.h b/mse/include/alibabacloud/mse/model/ListAuthPolicyResult.h new file mode 100644 index 000000000..edb40f3e5 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAuthPolicyResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTAUTHPOLICYRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTAUTHPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListAuthPolicyResult : public ServiceResult + { + public: + struct Data + { + struct Policy + { + struct AuthRuleItem + { + struct Method + { + std::string group; + std::string version; + std::string serviceName; + std::vector parameterTypes; + std::string returnType; + std::string name; + }; + std::string path; + std::vector k8sNamespaces; + Method method; + bool black; + int authType; + std::vector appIds; + }; + int status; + std::string accountId; + std::string source; + std::string appName; + std::string name; + std::string k8sNamespace; + std::string appId; + bool enable; + std::string namespaceId; + std::string regionId; + int id; + int authType; + std::vector authRule; + std::string protocol; + }; + int pageSize; + int pageNumber; + int totalSize; + std::vector result; + }; + + + ListAuthPolicyResult(); + explicit ListAuthPolicyResult(const std::string &payload); + ~ListAuthPolicyResult(); + 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_LISTAUTHPOLICYRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListCircuitBreakerRulesRequest.h b/mse/include/alibabacloud/mse/model/ListCircuitBreakerRulesRequest.h new file mode 100644 index 000000000..979e6c5fb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListCircuitBreakerRulesRequest.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_LISTCIRCUITBREAKERRULESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTCIRCUITBREAKERRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListCircuitBreakerRulesRequest : public RpcServiceRequest { +public: + ListCircuitBreakerRulesRequest(); + ~ListCircuitBreakerRulesRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getAppName() const; + void setAppName(const std::string &appName); + int getPageSize() const; + void setPageSize(int pageSize); + int getPageIndex() const; + void setPageIndex(int pageIndex); + std::string getResource() const; + void setResource(const std::string &resource); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getResourceSearchKey() const; + void setResourceSearchKey(const std::string &resourceSearchKey); + +private: + std::string mseSessionId_; + std::string appName_; + int pageSize_; + int pageIndex_; + std::string resource_; + std::string appId_; + std::string _namespace_; + std::string acceptLanguage_; + std::string resourceSearchKey_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTCIRCUITBREAKERRULESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListCircuitBreakerRulesResult.h b/mse/include/alibabacloud/mse/model/ListCircuitBreakerRulesResult.h new file mode 100644 index 000000000..0f78d4299 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListCircuitBreakerRulesResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTCIRCUITBREAKERRULESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTCIRCUITBREAKERRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListCircuitBreakerRulesResult : public ServiceResult + { + public: + struct Data + { + struct ResultItem + { + int minRequestAmount; + long ruleId; + std::string resource; + std::string _namespace; + std::string appName; + int retryTimeoutMs; + std::string appId; + int halfOpenRecoveryStepNum; + std::string fallbackObject; + int strategy; + bool enable; + int maxAllowedRtMs; + std::string regionId; + int halfOpenBaseAmountPerStep; + int statIntervalMs; + float threshold; + }; + int pageSize; + int pageNumber; + int totalSize; + std::vector result; + }; + + + ListCircuitBreakerRulesResult(); + explicit ListCircuitBreakerRulesResult(const std::string &payload); + ~ListCircuitBreakerRulesResult(); + 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_LISTCIRCUITBREAKERRULESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListClusterHealthCheckTaskRequest.h b/mse/include/alibabacloud/mse/model/ListClusterHealthCheckTaskRequest.h index fae1e291c..62fd9e23e 100644 --- a/mse/include/alibabacloud/mse/model/ListClusterHealthCheckTaskRequest.h +++ b/mse/include/alibabacloud/mse/model/ListClusterHealthCheckTaskRequest.h @@ -34,24 +34,24 @@ public: void setMseSessionId(const std::string &mseSessionId); int getPageNum() const; void setPageNum(int pageNum); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; int pageNum_; - std::string instanceId_; std::string regionId_; int pageSize_; std::string requestPars_; + std::string instanceId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/ListClusterTypesRequest.h b/mse/include/alibabacloud/mse/model/ListClusterTypesRequest.h index cb833ac23..a42fd9f27 100644 --- a/mse/include/alibabacloud/mse/model/ListClusterTypesRequest.h +++ b/mse/include/alibabacloud/mse/model/ListClusterTypesRequest.h @@ -32,10 +32,10 @@ public: ~ListClusterTypesRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getConnectType() const; - void setConnectType(const std::string &connectType); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getConnectType() const; + void setConnectType(const std::string &connectType); std::string getMseVersion() const; void setMseVersion(const std::string &mseVersion); std::string getAcceptLanguage() const; @@ -43,8 +43,8 @@ public: private: std::string mseSessionId_; - std::string connectType_; std::string regionId_; + std::string connectType_; std::string mseVersion_; std::string acceptLanguage_; }; diff --git a/mse/include/alibabacloud/mse/model/ListClustersRequest.h b/mse/include/alibabacloud/mse/model/ListClustersRequest.h index 6ef0b1c6d..4ad769aa2 100644 --- a/mse/include/alibabacloud/mse/model/ListClustersRequest.h +++ b/mse/include/alibabacloud/mse/model/ListClustersRequest.h @@ -36,8 +36,6 @@ public: ~ListClustersRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getClusterAliasName() const; - void setClusterAliasName(const std::string &clusterAliasName); int getPageNum() const; void setPageNum(int pageNum); std::string getResourceGroupId() const; @@ -48,21 +46,23 @@ public: void setRequestPars(const std::string &requestPars); int getPageSize() const; void setPageSize(int pageSize); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::vector getTag() const; void setTag(const std::vector &tag); + std::string getClusterAliasName() const; + void setClusterAliasName(const std::string &clusterAliasName); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string clusterAliasName_; int pageNum_; std::string resourceGroupId_; std::string regionId_; std::string requestPars_; int pageSize_; - std::string acceptLanguage_; std::vector tag_; + std::string clusterAliasName_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/ListConfigTrackRequest.h b/mse/include/alibabacloud/mse/model/ListConfigTrackRequest.h index b2fa25ffb..dd8ec7706 100644 --- a/mse/include/alibabacloud/mse/model/ListConfigTrackRequest.h +++ b/mse/include/alibabacloud/mse/model/ListConfigTrackRequest.h @@ -40,18 +40,18 @@ public: void setNamespaceId(const std::string &namespaceId); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); - long getEndTs() const; - void setEndTs(long endTs); - long getPageSize() const; - void setPageSize(long pageSize); std::string getGroup() const; void setGroup(const std::string &group); std::string getIp() const; void setIp(const std::string &ip); - bool getReverse() const; - void setReverse(bool reverse); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); + long getEndTs() const; + void setEndTs(long endTs); + long getPageSize() const; + void setPageSize(long pageSize); + bool getReverse() const; + void setReverse(bool reverse); std::string getDataId() const; void setDataId(const std::string &dataId); std::string getAcceptLanguage() const; @@ -63,12 +63,12 @@ private: long pageNum_; std::string namespaceId_; std::string requestPars_; - long endTs_; - long pageSize_; std::string group_; std::string ip_; - bool reverse_; std::string instanceId_; + long endTs_; + long pageSize_; + bool reverse_; std::string dataId_; std::string acceptLanguage_; }; diff --git a/mse/include/alibabacloud/mse/model/ListEngineNamespacesRequest.h b/mse/include/alibabacloud/mse/model/ListEngineNamespacesRequest.h index 1f5b59bc6..0f972fb6e 100644 --- a/mse/include/alibabacloud/mse/model/ListEngineNamespacesRequest.h +++ b/mse/include/alibabacloud/mse/model/ListEngineNamespacesRequest.h @@ -32,23 +32,23 @@ public: ~ListEngineNamespacesRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); int getPageNum() const; void setPageNum(int pageNum); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); int getPageSize() const; void setPageSize(int pageSize); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string clusterId_; int pageNum_; - std::string instanceId_; int pageSize_; + std::string clusterId_; + std::string instanceId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/ListEngineNamespacesResult.h b/mse/include/alibabacloud/mse/model/ListEngineNamespacesResult.h index 1c132bd60..a999c5714 100644 --- a/mse/include/alibabacloud/mse/model/ListEngineNamespacesResult.h +++ b/mse/include/alibabacloud/mse/model/ListEngineNamespacesResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud int type; int quota; int configCount; + std::string sourceType; std::string namespaceShowName; std::string _namespace; std::string namespaceDesc; diff --git a/mse/include/alibabacloud/mse/model/ListEurekaInstancesRequest.h b/mse/include/alibabacloud/mse/model/ListEurekaInstancesRequest.h index ee43c216c..6a7bceaee 100644 --- a/mse/include/alibabacloud/mse/model/ListEurekaInstancesRequest.h +++ b/mse/include/alibabacloud/mse/model/ListEurekaInstancesRequest.h @@ -32,27 +32,27 @@ public: ~ListEurekaInstancesRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); int getPageNum() const; void setPageNum(int pageNum); 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); std::string getServiceName() const; void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string clusterId_; int pageNum_; std::string requestPars_; int pageSize_; - std::string acceptLanguage_; std::string serviceName_; + std::string clusterId_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/ListEurekaServicesRequest.h b/mse/include/alibabacloud/mse/model/ListEurekaServicesRequest.h index 1ff7518f7..42367961e 100644 --- a/mse/include/alibabacloud/mse/model/ListEurekaServicesRequest.h +++ b/mse/include/alibabacloud/mse/model/ListEurekaServicesRequest.h @@ -32,8 +32,6 @@ public: ~ListEurekaServicesRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); int getPageNum() const; void setPageNum(int pageNum); std::string getRegionId() const; @@ -42,16 +40,18 @@ public: void setRequestPars(const std::string &requestPars); int getPageSize() const; void setPageSize(int pageSize); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string clusterId_; int pageNum_; std::string regionId_; std::string requestPars_; int pageSize_; + std::string clusterId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/ListExportZookeeperDataRequest.h b/mse/include/alibabacloud/mse/model/ListExportZookeeperDataRequest.h new file mode 100644 index 000000000..940a114db --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListExportZookeeperDataRequest.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_LISTEXPORTZOOKEEPERDATAREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTEXPORTZOOKEEPERDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListExportZookeeperDataRequest : public RpcServiceRequest { +public: + ListExportZookeeperDataRequest(); + ~ListExportZookeeperDataRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + int pageNumber_; + int pageSize_; + std::string instanceId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTEXPORTZOOKEEPERDATAREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListExportZookeeperDataResult.h b/mse/include/alibabacloud/mse/model/ListExportZookeeperDataResult.h new file mode 100644 index 000000000..6bab8ef50 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListExportZookeeperDataResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTEXPORTZOOKEEPERDATARESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTEXPORTZOOKEEPERDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListExportZookeeperDataResult : public ServiceResult + { + public: + struct DataItem + { + std::string status; + std::string instanceId; + std::string contentMap; + std::string extend; + std::string exportType; + long createTime; + long updateTime; + int id; + std::string kubeoneTaskIds; + }; + + + ListExportZookeeperDataResult(); + explicit ListExportZookeeperDataResult(const std::string &payload); + ~ListExportZookeeperDataResult(); + std::string getMessage()const; + std::string getHttpStatusCode()const; + std::vector getData()const; + std::string getDynamicMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string httpStatusCode_; + std::vector data_; + std::string dynamicMessage_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTEXPORTZOOKEEPERDATARESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListFlowRulesRequest.h b/mse/include/alibabacloud/mse/model/ListFlowRulesRequest.h new file mode 100644 index 000000000..5ceedb1e5 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListFlowRulesRequest.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_LISTFLOWRULESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTFLOWRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListFlowRulesRequest : public RpcServiceRequest { +public: + ListFlowRulesRequest(); + ~ListFlowRulesRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getAppName() const; + void setAppName(const std::string &appName); + int getPageSize() const; + void setPageSize(int pageSize); + int getPageIndex() const; + void setPageIndex(int pageIndex); + std::string getResource() const; + void setResource(const std::string &resource); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getResourceSearchKey() const; + void setResourceSearchKey(const std::string &resourceSearchKey); + +private: + std::string mseSessionId_; + std::string appName_; + int pageSize_; + int pageIndex_; + std::string resource_; + std::string appId_; + std::string _namespace_; + std::string acceptLanguage_; + std::string resourceSearchKey_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTFLOWRULESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListFlowRulesResult.h b/mse/include/alibabacloud/mse/model/ListFlowRulesResult.h new file mode 100644 index 000000000..46652b33f --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListFlowRulesResult.h @@ -0,0 +1,82 @@ +/* + * 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_LISTFLOWRULESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTFLOWRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListFlowRulesResult : public ServiceResult + { + public: + struct Data + { + struct ResultItem + { + long ruleId; + int metricType; + std::string resource; + int maxQueueingTimeMs; + std::string _namespace; + std::string appName; + std::string appId; + int controlBehavior; + std::string fallbackObject; + bool enable; + std::string regionId; + std::string trafficTags; + float threshold; + }; + int pageSize; + int pageNumber; + int totalSize; + std::vector result; + }; + + + ListFlowRulesResult(); + explicit ListFlowRulesResult(const std::string &payload); + ~ListFlowRulesResult(); + 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_LISTFLOWRULESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerRequest.h b/mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerRequest.h new file mode 100644 index 000000000..1a58dfc1f --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTGATEWAYAUTHCONSUMERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYAUTHCONSUMERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListGatewayAuthConsumerRequest : public RpcServiceRequest { +public: + ListGatewayAuthConsumerRequest(); + ~ListGatewayAuthConsumerRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getType() const; + void setType(const std::string &type); + std::string getPageNum() const; + void setPageNum(const std::string &pageNum); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + bool getConsumerStatus() const; + void setConsumerStatus(bool consumerStatus); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + std::string gatewayUniqueId_; + std::string type_; + std::string pageNum_; + std::string pageSize_; + bool consumerStatus_; + std::string name_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTGATEWAYAUTHCONSUMERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerResourceRequest.h b/mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerResourceRequest.h new file mode 100644 index 000000000..d7f23281e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerResourceRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTGATEWAYAUTHCONSUMERRESOURCEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYAUTHCONSUMERRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListGatewayAuthConsumerResourceRequest : public RpcServiceRequest { +public: + ListGatewayAuthConsumerResourceRequest(); + ~ListGatewayAuthConsumerResourceRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getConsumerId() const; + void setConsumerId(long consumerId); + std::string getPageNum() const; + void setPageNum(const std::string &pageNum); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getRouteName() const; + void setRouteName(const std::string &routeName); + bool getResourceStatus() const; + void setResourceStatus(bool resourceStatus); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + std::string gatewayUniqueId_; + long consumerId_; + std::string pageNum_; + std::string pageSize_; + std::string routeName_; + bool resourceStatus_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTGATEWAYAUTHCONSUMERRESOURCEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerResourceResult.h b/mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerResourceResult.h new file mode 100644 index 000000000..157f7b765 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerResourceResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTGATEWAYAUTHCONSUMERRESOURCERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYAUTHCONSUMERRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListGatewayAuthConsumerResourceResult : public ServiceResult + { + public: + struct Data + { + struct Consumers + { + std::string gatewayUniqueId; + std::string gmtCreate; + long consumerId; + std::string gmtModified; + std::string routeName; + bool resourceStatus; + long id; + long routeId; + }; + int pageSize; + int pageNumber; + long totalSize; + std::vector result; + }; + + + ListGatewayAuthConsumerResourceResult(); + explicit ListGatewayAuthConsumerResourceResult(const std::string &payload); + ~ListGatewayAuthConsumerResourceResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTGATEWAYAUTHCONSUMERRESOURCERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerResult.h b/mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerResult.h new file mode 100644 index 000000000..d885393c6 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewayAuthConsumerResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTGATEWAYAUTHCONSUMERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYAUTHCONSUMERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListGatewayAuthConsumerResult : public ServiceResult + { + public: + struct Data + { + struct Consumers + { + std::string gatewayUniqueId; + std::string type; + std::string gmtCreate; + std::string description; + bool consumerStatus; + std::string gmtModified; + std::string primaryUser; + long id; + std::string name; + }; + int pageSize; + int pageNumber; + long totalSize; + std::vector result; + }; + + + ListGatewayAuthConsumerResult(); + explicit ListGatewayAuthConsumerResult(const std::string &payload); + ~ListGatewayAuthConsumerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTGATEWAYAUTHCONSUMERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListGatewayResult.h b/mse/include/alibabacloud/mse/model/ListGatewayResult.h index 99bc22bf9..95265360d 100644 --- a/mse/include/alibabacloud/mse/model/ListGatewayResult.h +++ b/mse/include/alibabacloud/mse/model/ListGatewayResult.h @@ -41,6 +41,19 @@ namespace AlibabaCloud bool enableWaf; bool supportWaf; }; + struct ElasticPolicy + { + struct TimePolicyListItem + { + std::string endTime; + std::string startTime; + int desiredReplica; + }; + std::string elasticType; + bool elastic; + int maxReplica; + std::vector timePolicyList; + }; struct SlbItem { std::string slbId; @@ -64,6 +77,7 @@ namespace AlibabaCloud std::string slbSpec; std::string internetNetworkFlow; }; + std::string elasticType; std::string resourceGroupId; std::string currentVersion; std::vector slb; @@ -76,12 +90,15 @@ namespace AlibabaCloud std::string statusDesc; bool armsOn; std::string mseTag; + bool elastic; std::vector internetSlb; std::string gatewayVersion; int status; bool supportWasm; bool mustUpgrade; std::string instanceId; + ElasticPolicy elasticPolicy; + int totalReplica; bool ahasOn; int replica; std::string endDate; @@ -96,6 +113,8 @@ namespace AlibabaCloud long id; std::string tag; std::string spec; + std::string elasticInstanceId; + int elasticReplica; }; int pageSize; int pageNumber; diff --git a/mse/include/alibabacloud/mse/model/ListGatewayRouteOnAuthRequest.h b/mse/include/alibabacloud/mse/model/ListGatewayRouteOnAuthRequest.h new file mode 100644 index 000000000..7b1b58bb7 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewayRouteOnAuthRequest.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_LISTGATEWAYROUTEONAUTHREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYROUTEONAUTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListGatewayRouteOnAuthRequest : public RpcServiceRequest { +public: + ListGatewayRouteOnAuthRequest(); + ~ListGatewayRouteOnAuthRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + 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 mseSessionId_; + std::string gatewayUniqueId_; + std::string type_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTGATEWAYROUTEONAUTHREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListGatewayRouteOnAuthResult.h b/mse/include/alibabacloud/mse/model/ListGatewayRouteOnAuthResult.h new file mode 100644 index 000000000..c39c86a64 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewayRouteOnAuthResult.h @@ -0,0 +1,80 @@ +/* + * 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_LISTGATEWAYROUTEONAUTHRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYROUTEONAUTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListGatewayRouteOnAuthResult : public ServiceResult + { + public: + struct DataItem + { + struct RoutePredicates + { + struct PathPredicates + { + std::string path; + std::string type; + }; + PathPredicates pathPredicates; + }; + std::string gatewayUniqueId; + std::vector domainIdList; + long domainId; + std::string domainName; + std::vector domainNameList; + RoutePredicates routePredicates; + int id; + std::string gatewayId; + std::string name; + }; + + + ListGatewayRouteOnAuthResult(); + explicit ListGatewayRouteOnAuthResult(const std::string &payload); + ~ListGatewayRouteOnAuthResult(); + 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_LISTGATEWAYROUTEONAUTHRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListGatewaySlbResult.h b/mse/include/alibabacloud/mse/model/ListGatewaySlbResult.h index dda239e04..9ff129fa2 100644 --- a/mse/include/alibabacloud/mse/model/ListGatewaySlbResult.h +++ b/mse/include/alibabacloud/mse/model/ListGatewaySlbResult.h @@ -34,6 +34,13 @@ namespace AlibabaCloud public: struct Sources { + struct Service + { + std::string vServerGroupId; + std::string port; + std::string vServerGroupName; + std::string protocol; + }; std::string slbId; int httpPort; std::string vServerGroupId; @@ -47,8 +54,10 @@ namespace AlibabaCloud std::string gmtCreate; std::string gatewaySlbMode; std::string slbIp; + std::string vsMetaInfo; int serviceWeight; std::string id; + std::vector vServiceList; int httpsPort; }; diff --git a/mse/include/alibabacloud/mse/model/ListInstanceCountRequest.h b/mse/include/alibabacloud/mse/model/ListInstanceCountRequest.h index d18c9415a..80cb815fe 100644 --- a/mse/include/alibabacloud/mse/model/ListInstanceCountRequest.h +++ b/mse/include/alibabacloud/mse/model/ListInstanceCountRequest.h @@ -32,23 +32,23 @@ public: ~ListInstanceCountRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getClusterType() const; - void setClusterType(const std::string &clusterType); std::string getRegionId() const; void setRegionId(const std::string ®ionId); - std::string getMseVersion() const; - void setMseVersion(const std::string &mseVersion); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); + std::string getClusterType() const; + void setClusterType(const std::string &clusterType); + std::string getMseVersion() const; + void setMseVersion(const std::string &mseVersion); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string clusterType_; std::string regionId_; - std::string mseVersion_; std::string requestPars_; + std::string clusterType_; + std::string mseVersion_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/ListListenersByConfigRequest.h b/mse/include/alibabacloud/mse/model/ListListenersByConfigRequest.h index ab1ab2976..761cbdd93 100644 --- a/mse/include/alibabacloud/mse/model/ListListenersByConfigRequest.h +++ b/mse/include/alibabacloud/mse/model/ListListenersByConfigRequest.h @@ -32,27 +32,27 @@ public: ~ListListenersByConfigRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - std::string getDataId() const; - void setDataId(const std::string &dataId); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::string getGroup() const; void setGroup(const std::string &group); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDataId() const; + void setDataId(const std::string &dataId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string instanceId_; - std::string dataId_; std::string namespaceId_; std::string requestPars_; - std::string acceptLanguage_; std::string group_; + std::string instanceId_; + std::string dataId_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/ListListenersByIpRequest.h b/mse/include/alibabacloud/mse/model/ListListenersByIpRequest.h index b3e9be494..1465d18b9 100644 --- a/mse/include/alibabacloud/mse/model/ListListenersByIpRequest.h +++ b/mse/include/alibabacloud/mse/model/ListListenersByIpRequest.h @@ -32,23 +32,23 @@ public: ~ListListenersByIpRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getIp() const; - void setIp(const std::string &ip); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); + std::string getIp() const; + void setIp(const std::string &ip); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string ip_; - std::string instanceId_; std::string namespaceId_; std::string requestPars_; + std::string ip_; + std::string instanceId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/ListMigrationTaskRequest.h b/mse/include/alibabacloud/mse/model/ListMigrationTaskRequest.h index 9760ec412..1fe9ac74f 100644 --- a/mse/include/alibabacloud/mse/model/ListMigrationTaskRequest.h +++ b/mse/include/alibabacloud/mse/model/ListMigrationTaskRequest.h @@ -38,18 +38,18 @@ public: void setRequestPars(const std::string &requestPars); long getPageSize() const; void setPageSize(long pageSize); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::string getOriginInstanceName() const; void setOriginInstanceName(const std::string &originInstanceName); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; long pageNum_; std::string requestPars_; long pageSize_; - std::string acceptLanguage_; std::string originInstanceName_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/ListNacosHistoryConfigsRequest.h b/mse/include/alibabacloud/mse/model/ListNacosHistoryConfigsRequest.h index 1ac1039db..bf84381ae 100644 --- a/mse/include/alibabacloud/mse/model/ListNacosHistoryConfigsRequest.h +++ b/mse/include/alibabacloud/mse/model/ListNacosHistoryConfigsRequest.h @@ -34,10 +34,6 @@ public: void setMseSessionId(const std::string &mseSessionId); int getPageNum() const; void setPageNum(int pageNum); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - std::string getDataId() const; - void setDataId(const std::string &dataId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getNamespaceId() const; @@ -46,22 +42,26 @@ public: void setRequestPars(const std::string &requestPars); int getPageSize() const; void setPageSize(int pageSize); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::string getGroup() const; void setGroup(const std::string &group); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDataId() const; + void setDataId(const std::string &dataId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; int pageNum_; - std::string instanceId_; - std::string dataId_; std::string regionId_; std::string namespaceId_; std::string requestPars_; int pageSize_; - std::string acceptLanguage_; std::string group_; + std::string instanceId_; + std::string dataId_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/ListNamingTrackRequest.h b/mse/include/alibabacloud/mse/model/ListNamingTrackRequest.h index 2e4eb15de..bab912364 100644 --- a/mse/include/alibabacloud/mse/model/ListNamingTrackRequest.h +++ b/mse/include/alibabacloud/mse/model/ListNamingTrackRequest.h @@ -40,20 +40,20 @@ public: void setNamespaceId(const std::string &namespaceId); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); + std::string getGroup() const; + void setGroup(const std::string &group); + std::string getIp() const; + void setIp(const std::string &ip); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); long getEndTs() const; void setEndTs(long endTs); long getPageSize() const; void setPageSize(long pageSize); std::string getServiceName() const; void setServiceName(const std::string &serviceName); - std::string getGroup() const; - void setGroup(const std::string &group); - std::string getIp() const; - void setIp(const std::string &ip); bool getReverse() const; void setReverse(bool reverse); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); @@ -63,13 +63,13 @@ private: long pageNum_; std::string namespaceId_; std::string requestPars_; + std::string group_; + std::string ip_; + std::string instanceId_; long endTs_; long pageSize_; std::string serviceName_; - std::string group_; - std::string ip_; bool reverse_; - std::string instanceId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/ListTagResourcesRequest.h b/mse/include/alibabacloud/mse/model/ListTagResourcesRequest.h index e4d3a35c8..177c8e30b 100644 --- a/mse/include/alibabacloud/mse/model/ListTagResourcesRequest.h +++ b/mse/include/alibabacloud/mse/model/ListTagResourcesRequest.h @@ -36,27 +36,27 @@ public: ~ListTagResourcesRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::vector getResourceId() const; - void setResourceId(const std::vector &resourceId); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getNextToken() const; void setNextToken(const std::string &nextToken); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::vector getTag() const; void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::vector resourceId_; - std::string resourceType_; std::string regionId_; std::string nextToken_; - std::string acceptLanguage_; std::vector tag_; + std::vector resourceId_; + std::string resourceType_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/ListZnodeChildrenRequest.h b/mse/include/alibabacloud/mse/model/ListZnodeChildrenRequest.h index 2837c51b8..a919c3758 100644 --- a/mse/include/alibabacloud/mse/model/ListZnodeChildrenRequest.h +++ b/mse/include/alibabacloud/mse/model/ListZnodeChildrenRequest.h @@ -32,17 +32,17 @@ public: ~ListZnodeChildrenRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); std::string getPath() const; void setPath(const std::string &path); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string clusterId_; std::string path_; + std::string clusterId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterRequest.h b/mse/include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterRequest.h index 52f1785b1..21194916c 100644 --- a/mse/include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterRequest.h +++ b/mse/include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterRequest.h @@ -32,20 +32,20 @@ public: ~ModifyGovernanceKubernetesClusterRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); std::string getNamespaceInfos() const; void setNamespaceInfos(const std::string &namespaceInfos); std::string getClusterId() const; void setClusterId(const std::string &clusterId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; + std::string regionId_; std::string namespaceInfos_; std::string clusterId_; - std::string regionId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/ModifyLosslessRuleRequest.h b/mse/include/alibabacloud/mse/model/ModifyLosslessRuleRequest.h index 53fc08e49..6bc9b4a28 100644 --- a/mse/include/alibabacloud/mse/model/ModifyLosslessRuleRequest.h +++ b/mse/include/alibabacloud/mse/model/ModifyLosslessRuleRequest.h @@ -32,30 +32,26 @@ public: ~ModifyLosslessRuleRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - long getDelayTime() const; - void setDelayTime(long delayTime); - std::string getSource() const; - void setSource(const std::string &source); - long getWarmupTime() const; - void setWarmupTime(long warmupTime); std::string getAppName() const; void setAppName(const std::string &appName); - bool getRelated() const; - void setRelated(bool related); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); bool getEnable() const; void setEnable(bool enable); bool getAligned() const; void setAligned(bool aligned); - int getShutdownWaitSeconds() const; - void setShutdownWaitSeconds(int shutdownWaitSeconds); + int getFuncType() const; + void setFuncType(int funcType); + int getDelayTime() const; + void setDelayTime(int delayTime); + int getWarmupTime() const; + void setWarmupTime(int warmupTime); + bool getRelated() const; + void setRelated(bool related); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); bool getNotice() const; void setNotice(bool notice); bool getLossLessDetail() const; void setLossLessDetail(bool lossLessDetail); - long getFuncType() const; - void setFuncType(long funcType); std::string getAppId() const; void setAppId(const std::string &appId); std::string get_Namespace() const; @@ -65,18 +61,16 @@ public: private: std::string mseSessionId_; - long delayTime_; - std::string source_; - long warmupTime_; std::string appName_; - bool related_; - std::string regionId_; bool enable_; bool aligned_; - int shutdownWaitSeconds_; + int funcType_; + int delayTime_; + int warmupTime_; + bool related_; + std::string regionId_; bool notice_; bool lossLessDetail_; - long funcType_; std::string appId_; std::string _namespace_; std::string acceptLanguage_; diff --git a/mse/include/alibabacloud/mse/model/ModifyLosslessRuleResult.h b/mse/include/alibabacloud/mse/model/ModifyLosslessRuleResult.h index a5821278d..05b32af9c 100644 --- a/mse/include/alibabacloud/mse/model/ModifyLosslessRuleResult.h +++ b/mse/include/alibabacloud/mse/model/ModifyLosslessRuleResult.h @@ -37,18 +37,10 @@ namespace AlibabaCloud ModifyLosslessRuleResult(); explicit ModifyLosslessRuleResult(const std::string &payload); ~ModifyLosslessRuleResult(); - std::string getHttpCode()const; - std::string getMessage()const; - std::string getErrorCode()const; - bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string httpCode_; - std::string message_; - std::string errorCode_; - bool success_; }; } diff --git a/mse/include/alibabacloud/mse/model/OrderClusterHealthCheckRiskNoticeRequest.h b/mse/include/alibabacloud/mse/model/OrderClusterHealthCheckRiskNoticeRequest.h index b3a47f110..0ca7ec431 100644 --- a/mse/include/alibabacloud/mse/model/OrderClusterHealthCheckRiskNoticeRequest.h +++ b/mse/include/alibabacloud/mse/model/OrderClusterHealthCheckRiskNoticeRequest.h @@ -32,29 +32,29 @@ public: ~OrderClusterHealthCheckRiskNoticeRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); bool getMute() const; void setMute(bool mute); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); std::string getNoticeType() const; void setNoticeType(const std::string ¬iceType); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getRiskCode() const; void setRiskCode(const std::string &riskCode); - std::string getRequestPars() const; - void setRequestPars(const std::string &requestPars); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; + std::string regionId_; + std::string requestPars_; bool mute_; std::string instanceId_; std::string noticeType_; - std::string regionId_; std::string riskCode_; - std::string requestPars_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/QueryAllSwimmingLaneGroupResult.h b/mse/include/alibabacloud/mse/model/QueryAllSwimmingLaneGroupResult.h index 66c24adea..7e0a32ac6 100644 --- a/mse/include/alibabacloud/mse/model/QueryAllSwimmingLaneGroupResult.h +++ b/mse/include/alibabacloud/mse/model/QueryAllSwimmingLaneGroupResult.h @@ -32,15 +32,60 @@ namespace AlibabaCloud class ALIBABACLOUD_MSE_EXPORT QueryAllSwimmingLaneGroupResult : public ServiceResult { public: + struct SwimmingLaneGroup + { + std::string region11; + int status13; + bool messageQueueGrayEnable; + std::string entryApp10; + std::string _namespace8; + std::string source; + std::string name; + std::string messageQueueFilterSide; + std::string enable; + std::vector applicationList; + bool recordCanaryDetail; + std::string name1; + long id9; + std::string entryApp; + int status; + std::string messageQueueFilterSide5; + std::string _namespace; + std::string source3; + std::string dbGrayEnable; + std::string userId; + std::string region; + std::string dbGrayEnable2; + long id; + std::string enable7; + std::string userId4; + std::string appIds; + std::string appIds6; + bool messageQueueGrayEnable12; + }; QueryAllSwimmingLaneGroupResult(); explicit QueryAllSwimmingLaneGroupResult(const std::string &payload); ~QueryAllSwimmingLaneGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getData()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + int getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; + int httpStatusCode_; + std::vector data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; }; } diff --git a/mse/include/alibabacloud/mse/model/QueryAllSwimmingLaneRequest.h b/mse/include/alibabacloud/mse/model/QueryAllSwimmingLaneRequest.h index 89baf513d..d938ddff4 100644 --- a/mse/include/alibabacloud/mse/model/QueryAllSwimmingLaneRequest.h +++ b/mse/include/alibabacloud/mse/model/QueryAllSwimmingLaneRequest.h @@ -34,12 +34,15 @@ public: void setMseSessionId(const std::string &mseSessionId); long getGroupId() const; void setGroupId(long groupId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; long groupId_; + std::string _namespace_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/QueryAllSwimmingLaneResult.h b/mse/include/alibabacloud/mse/model/QueryAllSwimmingLaneResult.h index 5c9c6124f..2c2a16ac4 100644 --- a/mse/include/alibabacloud/mse/model/QueryAllSwimmingLaneResult.h +++ b/mse/include/alibabacloud/mse/model/QueryAllSwimmingLaneResult.h @@ -32,15 +32,70 @@ namespace AlibabaCloud class ALIBABACLOUD_MSE_EXPORT QueryAllSwimmingLaneResult : public ServiceResult { public: + struct SwimmingLaneGroup + { + struct EntryRule + { + struct RestItemsItem + { + std::string type; + std::string cond; + std::vector nameList; + std::string datum; + int rate; + std::string value; + std::string _operator; + int divisor; + std::string name; + int remainder; + }; + std::string path; + std::string condition; + std::vector restItems; + std::vector paths; + }; + int status; + std::string regionId5; + bool messageQueueGrayEnable; + std::string gmtModified; + std::string _namespace; + std::string name; + std::string groupId; + std::string entryRule; + std::string gmtCreate; + std::vector entryRules; + std::string groupId6; + std::string userId; + std::string enable3; + long id4; + std::string messageQueueFilterSide; + std::string enable; + std::string tag7; + long id; + std::string regionId; + std::string tag; + bool recordCanaryDetail; + bool enableRules; + std::string name1; + std::string userId2; + }; QueryAllSwimmingLaneResult(); explicit QueryAllSwimmingLaneResult(const std::string &payload); ~QueryAllSwimmingLaneResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getErrorCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; + std::vector data_; + std::string errorCode_; + bool success_; }; } diff --git a/mse/include/alibabacloud/mse/model/QueryClusterDetailRequest.h b/mse/include/alibabacloud/mse/model/QueryClusterDetailRequest.h index a4752c029..13aafc86c 100644 --- a/mse/include/alibabacloud/mse/model/QueryClusterDetailRequest.h +++ b/mse/include/alibabacloud/mse/model/QueryClusterDetailRequest.h @@ -30,10 +30,10 @@ class ALIBABACLOUD_MSE_EXPORT QueryClusterDetailRequest : public RpcServiceReque public: QueryClusterDetailRequest(); ~QueryClusterDetailRequest(); - bool getAclSwitch() const; - void setAclSwitch(bool aclSwitch); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + bool getAclSwitch() const; + void setAclSwitch(bool aclSwitch); std::string getOrderId() const; void setOrderId(const std::string &orderId); std::string getClusterId() const; @@ -44,8 +44,8 @@ public: void setAcceptLanguage(const std::string &acceptLanguage); private: - bool aclSwitch_; std::string mseSessionId_; + bool aclSwitch_; std::string orderId_; std::string clusterId_; std::string instanceId_; diff --git a/mse/include/alibabacloud/mse/model/QueryClusterInfoRequest.h b/mse/include/alibabacloud/mse/model/QueryClusterInfoRequest.h index 1c748f2cf..b109b891b 100644 --- a/mse/include/alibabacloud/mse/model/QueryClusterInfoRequest.h +++ b/mse/include/alibabacloud/mse/model/QueryClusterInfoRequest.h @@ -30,31 +30,31 @@ class ALIBABACLOUD_MSE_EXPORT QueryClusterInfoRequest : public RpcServiceRequest public: QueryClusterInfoRequest(); ~QueryClusterInfoRequest(); - bool getAclSwitch() const; - void setAclSwitch(bool aclSwitch); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); + bool getAclSwitch() const; + void setAclSwitch(bool aclSwitch); std::string getOrderId() const; void setOrderId(const std::string &orderId); std::string getClusterId() const; void setClusterId(const std::string &clusterId); 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: - bool aclSwitch_; std::string mseSessionId_; + std::string regionId_; + std::string requestPars_; + bool aclSwitch_; std::string orderId_; std::string clusterId_; std::string instanceId_; - std::string regionId_; - std::string requestPars_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/QueryClusterInfoResult.h b/mse/include/alibabacloud/mse/model/QueryClusterInfoResult.h index 509f12f49..b307b95d8 100644 --- a/mse/include/alibabacloud/mse/model/QueryClusterInfoResult.h +++ b/mse/include/alibabacloud/mse/model/QueryClusterInfoResult.h @@ -77,6 +77,7 @@ namespace AlibabaCloud std::string intranetAddress; long diskCapacity; std::string vpcId; + std::vector expectZones; std::string pubNetworkFlow; std::string chargeType; std::string regionId; diff --git a/mse/include/alibabacloud/mse/model/QueryConfigRequest.h b/mse/include/alibabacloud/mse/model/QueryConfigRequest.h index 47d79f590..e3a00cde1 100644 --- a/mse/include/alibabacloud/mse/model/QueryConfigRequest.h +++ b/mse/include/alibabacloud/mse/model/QueryConfigRequest.h @@ -30,28 +30,28 @@ class ALIBABACLOUD_MSE_EXPORT QueryConfigRequest : public RpcServiceRequest { public: QueryConfigRequest(); ~QueryConfigRequest(); - bool getNeedRunningConf() const; - void setNeedRunningConf(bool needRunningConf); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); + bool getNeedRunningConf() const; + void setNeedRunningConf(bool needRunningConf); std::string getConfigType() const; void setConfigType(const std::string &configType); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - std::string getRequestPars() const; - void setRequestPars(const std::string &requestPars); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: - bool needRunningConf_; std::string mseSessionId_; + std::string requestPars_; + bool needRunningConf_; std::string configType_; std::string clusterId_; std::string instanceId_; - std::string requestPars_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/QueryConfigResult.h b/mse/include/alibabacloud/mse/model/QueryConfigResult.h index a02392b3e..4c010715a 100644 --- a/mse/include/alibabacloud/mse/model/QueryConfigResult.h +++ b/mse/include/alibabacloud/mse/model/QueryConfigResult.h @@ -44,12 +44,14 @@ namespace AlibabaCloud bool openSuperAcl; bool namingCreateServiceSupported; bool configSecretSupported; + bool eurekaSupported; std::string passWord; std::string jvmFlagsCustom; bool configAuthEnabled; std::string autopurgePurgeInterval; bool mCPSupported; bool namingAuthSupported; + bool tLSEnabled; std::string clusterName; bool configSecretEnabled; NacosRunningEnv nacosRunningEnv; diff --git a/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterRequest.h b/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterRequest.h index 297e1d6e6..a060e171f 100644 --- a/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterRequest.h +++ b/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterRequest.h @@ -34,21 +34,21 @@ public: void setMseSessionId(const std::string &mseSessionId); std::string getClusterName() const; void setClusterName(const std::string &clusterName); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); int getPageNumber() const; void setPageNumber(int pageNumber); int getPageSize() const; void setPageSize(int pageSize); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; std::string clusterName_; - std::string clusterId_; int pageNumber_; int pageSize_; + std::string clusterId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterResult.h b/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterResult.h index f4e9a4c46..9b8f80177 100644 --- a/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterResult.h +++ b/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterResult.h @@ -54,18 +54,14 @@ namespace AlibabaCloud explicit QueryGovernanceKubernetesClusterResult(const std::string &payload); ~QueryGovernanceKubernetesClusterResult(); 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_; }; diff --git a/mse/include/alibabacloud/mse/model/QueryInstancesInfoRequest.h b/mse/include/alibabacloud/mse/model/QueryInstancesInfoRequest.h index 42fe2e006..31fc101b7 100644 --- a/mse/include/alibabacloud/mse/model/QueryInstancesInfoRequest.h +++ b/mse/include/alibabacloud/mse/model/QueryInstancesInfoRequest.h @@ -32,26 +32,26 @@ public: ~QueryInstancesInfoRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); std::string getOrderId() const; void setOrderId(const std::string &orderId); std::string getClusterId() const; void setClusterId(const std::string &clusterId); 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 mseSessionId_; + std::string regionId_; + std::string requestPars_; std::string orderId_; std::string clusterId_; std::string instanceId_; - std::string regionId_; - std::string requestPars_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/QueryInstancesInfoResult.h b/mse/include/alibabacloud/mse/model/QueryInstancesInfoResult.h index 0375f4ff4..d92e6634d 100644 --- a/mse/include/alibabacloud/mse/model/QueryInstancesInfoResult.h +++ b/mse/include/alibabacloud/mse/model/QueryInstancesInfoResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string role; std::string podName; + bool zoneDistributed; std::string internetIp; std::string creationTimestamp; std::string singleTunnelVip; diff --git a/mse/include/alibabacloud/mse/model/QueryMonitorRequest.h b/mse/include/alibabacloud/mse/model/QueryMonitorRequest.h index 25574ab99..b06a1fc93 100644 --- a/mse/include/alibabacloud/mse/model/QueryMonitorRequest.h +++ b/mse/include/alibabacloud/mse/model/QueryMonitorRequest.h @@ -30,33 +30,33 @@ class ALIBABACLOUD_MSE_EXPORT QueryMonitorRequest : public RpcServiceRequest { public: QueryMonitorRequest(); ~QueryMonitorRequest(); - std::string getMonitorType() const; - void setMonitorType(const std::string &monitorType); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + long getStartTime() const; + void setStartTime(long startTime); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); + std::string getMonitorType() const; + void setMonitorType(const std::string &monitorType); long getEndTime() const; void setEndTime(long endTime); std::string getClusterId() const; void setClusterId(const std::string &clusterId); - long getStartTime() const; - void setStartTime(long startTime); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - std::string getRequestPars() const; - void setRequestPars(const std::string &requestPars); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); long getStep() const; void setStep(long step); private: - std::string monitorType_; std::string mseSessionId_; + long startTime_; + std::string requestPars_; + std::string monitorType_; long endTime_; std::string clusterId_; - long startTime_; std::string instanceId_; - std::string requestPars_; std::string acceptLanguage_; long step_; }; diff --git a/mse/include/alibabacloud/mse/model/QueryNamespaceRequest.h b/mse/include/alibabacloud/mse/model/QueryNamespaceRequest.h new file mode 100644 index 000000000..f748ab636 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryNamespaceRequest.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_QUERYNAMESPACEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYNAMESPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QueryNamespaceRequest : public RpcServiceRequest { +public: + QueryNamespaceRequest(); + ~QueryNamespaceRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string mseSessionId_; + std::string name_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYNAMESPACEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QueryNamespaceResult.h b/mse/include/alibabacloud/mse/model/QueryNamespaceResult.h new file mode 100644 index 000000000..5d2a12491 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryNamespaceResult.h @@ -0,0 +1,64 @@ +/* + * 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_QUERYNAMESPACERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYNAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QueryNamespaceResult : public ServiceResult + { + public: + struct NamespaceList + { + std::string region; + std::string _namespace; + }; + + + QueryNamespaceResult(); + explicit QueryNamespaceResult(const std::string &payload); + ~QueryNamespaceResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYNAMESPACERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QuerySwimmingLaneByIdRequest.h b/mse/include/alibabacloud/mse/model/QuerySwimmingLaneByIdRequest.h index e4aabc9d0..beb72064d 100644 --- a/mse/include/alibabacloud/mse/model/QuerySwimmingLaneByIdRequest.h +++ b/mse/include/alibabacloud/mse/model/QuerySwimmingLaneByIdRequest.h @@ -34,12 +34,15 @@ public: void setMseSessionId(const std::string &mseSessionId); long getLaneId() const; void setLaneId(long laneId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; long laneId_; + std::string _namespace_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/QuerySwimmingLaneByIdResult.h b/mse/include/alibabacloud/mse/model/QuerySwimmingLaneByIdResult.h index 8a2a0fcb0..52ff4b51a 100644 --- a/mse/include/alibabacloud/mse/model/QuerySwimmingLaneByIdResult.h +++ b/mse/include/alibabacloud/mse/model/QuerySwimmingLaneByIdResult.h @@ -32,15 +32,63 @@ namespace AlibabaCloud class ALIBABACLOUD_MSE_EXPORT QuerySwimmingLaneByIdResult : public ServiceResult { public: + struct Data + { + struct EntryRule + { + struct RestItemsItem + { + std::string type; + std::string cond; + std::vector nameList; + std::string datum; + int rate; + std::string value; + std::string _operator; + int divisor; + std::string name; + int remainder; + }; + std::string path; + std::string condition; + std::vector restItems; + std::vector paths; + }; + int status; + std::vector entryRules; + std::string gmtModified; + std::string gatewaySwimmingLaneRouteJson; + std::string name; + long groupId; + std::string entryRule; + std::string gmtCreate; + bool enable; + long id; + std::string tag; + std::string regionId; + bool enableRules; + }; QuerySwimmingLaneByIdResult(); explicit QuerySwimmingLaneByIdResult(const std::string &payload); ~QuerySwimmingLaneByIdResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getErrorCode()const; + int getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string errorCode_; + int code_; + bool success_; }; } diff --git a/mse/include/alibabacloud/mse/model/QueryZnodeDetailRequest.h b/mse/include/alibabacloud/mse/model/QueryZnodeDetailRequest.h index ef0eb440f..dcbfd8f93 100644 --- a/mse/include/alibabacloud/mse/model/QueryZnodeDetailRequest.h +++ b/mse/include/alibabacloud/mse/model/QueryZnodeDetailRequest.h @@ -32,23 +32,23 @@ public: ~QueryZnodeDetailRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getClusterId() const; - 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 getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string clusterId_; std::string path_; - std::string instanceId_; std::string requestPars_; + std::string clusterId_; + std::string instanceId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/RemoveApplicationRequest.h b/mse/include/alibabacloud/mse/model/RemoveApplicationRequest.h new file mode 100644 index 000000000..b48e22613 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/RemoveApplicationRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_REMOVEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_REMOVEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT RemoveApplicationRequest : public RpcServiceRequest { +public: + RemoveApplicationRequest(); + ~RemoveApplicationRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string mseSessionId_; + std::string appName_; + std::string appId_; + std::string _namespace_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_REMOVEAPPLICATIONREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/RemoveApplicationResult.h b/mse/include/alibabacloud/mse/model/RemoveApplicationResult.h new file mode 100644 index 000000000..c84593210 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/RemoveApplicationResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_REMOVEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_REMOVEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT RemoveApplicationResult : public ServiceResult + { + public: + + + RemoveApplicationResult(); + explicit RemoveApplicationResult(const std::string &payload); + ~RemoveApplicationResult(); + std::string getMessage()const; + std::string getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_REMOVEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/RemoveAuthPolicyRequest.h b/mse/include/alibabacloud/mse/model/RemoveAuthPolicyRequest.h new file mode 100644 index 000000000..15c3ef416 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/RemoveAuthPolicyRequest.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_REMOVEAUTHPOLICYREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_REMOVEAUTHPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT RemoveAuthPolicyRequest : public RpcServiceRequest { +public: + RemoveAuthPolicyRequest(); + ~RemoveAuthPolicyRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + std::string policyId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_REMOVEAUTHPOLICYREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/RemoveAuthPolicyResult.h b/mse/include/alibabacloud/mse/model/RemoveAuthPolicyResult.h new file mode 100644 index 000000000..e7ba6d54d --- /dev/null +++ b/mse/include/alibabacloud/mse/model/RemoveAuthPolicyResult.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_REMOVEAUTHPOLICYRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_REMOVEAUTHPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT RemoveAuthPolicyResult : public ServiceResult + { + public: + + + RemoveAuthPolicyResult(); + explicit RemoveAuthPolicyResult(const std::string &payload); + ~RemoveAuthPolicyResult(); + 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_REMOVEAUTHPOLICYRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/RestartClusterRequest.h b/mse/include/alibabacloud/mse/model/RestartClusterRequest.h index 37a09108d..32e2ef7ce 100644 --- a/mse/include/alibabacloud/mse/model/RestartClusterRequest.h +++ b/mse/include/alibabacloud/mse/model/RestartClusterRequest.h @@ -32,23 +32,23 @@ public: ~RestartClusterRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); std::string getPodNameList() const; void setPodNameList(const std::string &podNameList); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string clusterId_; std::string podNameList_; - std::string instanceId_; std::string requestPars_; + std::string clusterId_; + std::string instanceId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/RetryClusterRequest.h b/mse/include/alibabacloud/mse/model/RetryClusterRequest.h index 4d03e856a..efa10c487 100644 --- a/mse/include/alibabacloud/mse/model/RetryClusterRequest.h +++ b/mse/include/alibabacloud/mse/model/RetryClusterRequest.h @@ -32,20 +32,20 @@ public: ~RetryClusterRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - std::string getRequestPars() const; - void setRequestPars(const std::string &requestPars); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; + std::string requestPars_; std::string clusterId_; std::string instanceId_; - std::string requestPars_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/TagResourcesRequest.h b/mse/include/alibabacloud/mse/model/TagResourcesRequest.h index 54fc951b6..78174a8cb 100644 --- a/mse/include/alibabacloud/mse/model/TagResourcesRequest.h +++ b/mse/include/alibabacloud/mse/model/TagResourcesRequest.h @@ -36,24 +36,24 @@ public: ~TagResourcesRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); std::vector getResourceId() const; void setResourceId(const std::vector &resourceId); std::string getResourceType() const; void setResourceType(const std::string &resourceType); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::vector getTag() const; - void setTag(const std::vector &tag); private: std::string mseSessionId_; + std::string regionId_; + std::vector tag_; std::vector resourceId_; std::string resourceType_; - std::string regionId_; std::string acceptLanguage_; - std::vector tag_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/UntagResourcesRequest.h b/mse/include/alibabacloud/mse/model/UntagResourcesRequest.h index ab3f51b20..7195f68f9 100644 --- a/mse/include/alibabacloud/mse/model/UntagResourcesRequest.h +++ b/mse/include/alibabacloud/mse/model/UntagResourcesRequest.h @@ -30,27 +30,27 @@ class ALIBABACLOUD_MSE_EXPORT UntagResourcesRequest : public RpcServiceRequest { public: UntagResourcesRequest(); ~UntagResourcesRequest(); - bool getAll() const; - void setAll(bool all); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getAll() const; + void setAll(bool all); std::vector getResourceId() const; void setResourceId(const std::vector &resourceId); std::string getResourceType() const; void setResourceType(const std::string &resourceType); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); std::vector getTagKey() const; void setTagKey(const std::vector &tagKey); private: - bool all_; std::string mseSessionId_; + std::string regionId_; + bool all_; std::vector resourceId_; std::string resourceType_; - std::string regionId_; std::string acceptLanguage_; std::vector tagKey_; }; diff --git a/mse/include/alibabacloud/mse/model/UpdateAuthPolicyRequest.h b/mse/include/alibabacloud/mse/model/UpdateAuthPolicyRequest.h new file mode 100644 index 000000000..6d6218322 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateAuthPolicyRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEAUTHPOLICYREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEAUTHPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateAuthPolicyRequest : public RpcServiceRequest { +public: + UpdateAuthPolicyRequest(); + ~UpdateAuthPolicyRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getAuthRule() const; + void setAuthRule(const std::string &authRule); + std::string getSource() const; + void setSource(const std::string &source); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getEnable() const; + void setEnable(const std::string &enable); + std::string getId() const; + void setId(const std::string &id); + std::string getK8sNamespace() const; + void setK8sNamespace(const std::string &k8sNamespace); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string mseSessionId_; + std::string authRule_; + std::string source_; + std::string protocol_; + std::string enable_; + std::string id_; + std::string k8sNamespace_; + std::string appId_; + std::string name_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEAUTHPOLICYREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateAuthPolicyResult.h b/mse/include/alibabacloud/mse/model/UpdateAuthPolicyResult.h new file mode 100644 index 000000000..de92817eb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateAuthPolicyResult.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_UPDATEAUTHPOLICYRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEAUTHPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateAuthPolicyResult : public ServiceResult + { + public: + + + UpdateAuthPolicyResult(); + explicit UpdateAuthPolicyResult(const std::string &payload); + ~UpdateAuthPolicyResult(); + 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_UPDATEAUTHPOLICYRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateCircuitBreakerRuleRequest.h b/mse/include/alibabacloud/mse/model/UpdateCircuitBreakerRuleRequest.h new file mode 100644 index 000000000..7ed28c9f0 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateCircuitBreakerRuleRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATECIRCUITBREAKERRULEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATECIRCUITBREAKERRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateCircuitBreakerRuleRequest : public RpcServiceRequest { +public: + UpdateCircuitBreakerRuleRequest(); + ~UpdateCircuitBreakerRuleRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + float getThreshold() const; + void setThreshold(float threshold); + int getRetryTimeoutMs() const; + void setRetryTimeoutMs(int retryTimeoutMs); + std::string getAppName() const; + void setAppName(const std::string &appName); + bool getEnable() const; + void setEnable(bool enable); + int getMinRequestAmount() const; + void setMinRequestAmount(int minRequestAmount); + int getMaxAllowedRtMs() const; + void setMaxAllowedRtMs(int maxAllowedRtMs); + long getRuleId() const; + void setRuleId(long ruleId); + int getHalfOpenBaseAmountPerStep() const; + void setHalfOpenBaseAmountPerStep(int halfOpenBaseAmountPerStep); + int getStatIntervalMs() const; + void setStatIntervalMs(int statIntervalMs); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + int getHalfOpenRecoveryStepNum() const; + void setHalfOpenRecoveryStepNum(int halfOpenRecoveryStepNum); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + int getStrategy() const; + void setStrategy(int strategy); + +private: + std::string mseSessionId_; + float threshold_; + int retryTimeoutMs_; + std::string appName_; + bool enable_; + int minRequestAmount_; + int maxAllowedRtMs_; + long ruleId_; + int halfOpenBaseAmountPerStep_; + int statIntervalMs_; + std::string appId_; + std::string _namespace_; + int halfOpenRecoveryStepNum_; + std::string acceptLanguage_; + int strategy_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATECIRCUITBREAKERRULEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateCircuitBreakerRuleResult.h b/mse/include/alibabacloud/mse/model/UpdateCircuitBreakerRuleResult.h new file mode 100644 index 000000000..c5b9ced0d --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateCircuitBreakerRuleResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATECIRCUITBREAKERRULERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATECIRCUITBREAKERRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateCircuitBreakerRuleResult : public ServiceResult + { + public: + struct Data + { + int minRequestAmount; + std::string resource; + std::string _namespace; + std::string appName; + int retryTimeoutMs; + std::string appId; + int halfOpenRecoveryStepNum; + int strategy; + bool enable; + int maxAllowedRtMs; + long id; + int halfOpenBaseAmountPerStep; + int statIntervalMs; + float threshold; + }; + + + UpdateCircuitBreakerRuleResult(); + explicit UpdateCircuitBreakerRuleResult(const std::string &payload); + ~UpdateCircuitBreakerRuleResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATECIRCUITBREAKERRULERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateClusterRequest.h b/mse/include/alibabacloud/mse/model/UpdateClusterRequest.h index 935a409c6..f12e8054d 100644 --- a/mse/include/alibabacloud/mse/model/UpdateClusterRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateClusterRequest.h @@ -32,23 +32,23 @@ public: ~UpdateClusterRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); std::string getClusterAliasName() const; void setClusterAliasName(const std::string &clusterAliasName); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - std::string getRequestPars() const; - void setRequestPars(const std::string &requestPars); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; + std::string requestPars_; std::string clusterAliasName_; std::string clusterId_; std::string instanceId_; - std::string requestPars_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/UpdateClusterSpecRequest.h b/mse/include/alibabacloud/mse/model/UpdateClusterSpecRequest.h index e1659bcdb..c59d703c8 100644 --- a/mse/include/alibabacloud/mse/model/UpdateClusterSpecRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateClusterSpecRequest.h @@ -40,6 +40,8 @@ public: void setClusterId(const std::string &clusterId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); + std::string getMseVersion() const; + void setMseVersion(const std::string &mseVersion); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); @@ -49,6 +51,7 @@ private: int instanceCount_; std::string clusterId_; std::string instanceId_; + std::string mseVersion_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/UpdateClusterSpecResult.h b/mse/include/alibabacloud/mse/model/UpdateClusterSpecResult.h index 0d158e73d..4d5703099 100644 --- a/mse/include/alibabacloud/mse/model/UpdateClusterSpecResult.h +++ b/mse/include/alibabacloud/mse/model/UpdateClusterSpecResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string getMessage()const; int getHttpStatusCode()const; std::string getData()const; + std::string getErrorCode()const; int getCode()const; bool getSuccess()const; @@ -49,6 +50,7 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; std::string data_; + std::string errorCode_; int code_; bool success_; diff --git a/mse/include/alibabacloud/mse/model/UpdateConfigRequest.h b/mse/include/alibabacloud/mse/model/UpdateConfigRequest.h index 54ac8d99d..1d5c99c28 100644 --- a/mse/include/alibabacloud/mse/model/UpdateConfigRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateConfigRequest.h @@ -30,46 +30,50 @@ class ALIBABACLOUD_MSE_EXPORT UpdateConfigRequest : public RpcServiceRequest { public: UpdateConfigRequest(); ~UpdateConfigRequest(); - std::string getOpenSuperAcl() const; - void setOpenSuperAcl(const std::string &openSuperAcl); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); bool getConfigAuthEnabled() const; void setConfigAuthEnabled(bool configAuthEnabled); std::string getPassWord() const; void setPassWord(const std::string &passWord); - std::string getSnapshotCount() const; - void setSnapshotCount(const std::string &snapshotCount); - std::string getMinSessionTimeout() const; - void setMinSessionTimeout(const std::string &minSessionTimeout); std::string getMaxClientCnxns() const; void setMaxClientCnxns(const std::string &maxClientCnxns); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); - std::string getJuteMaxbuffer() const; - void setJuteMaxbuffer(const std::string &juteMaxbuffer); bool getNamingAuthEnabled() const; void setNamingAuthEnabled(bool namingAuthEnabled); - std::string getConfigType() const; - void setConfigType(const std::string &configType); std::string getExtendedTypesEnable() const; void setExtendedTypesEnable(const std::string &extendedTypesEnable); std::string getAutopurgeSnapRetainCount() const; void setAutopurgeSnapRetainCount(const std::string &autopurgeSnapRetainCount); - std::string getMaxSessionTimeout() const; - void setMaxSessionTimeout(const std::string &maxSessionTimeout); bool getConfigSecretEnabled() const; void setConfigSecretEnabled(bool configSecretEnabled); bool getMCPEnabled() const; void setMCPEnabled(bool mCPEnabled); - std::string getTickTime() const; - void setTickTime(const std::string &tickTime); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); std::string getSyncLimit() const; void setSyncLimit(const std::string &syncLimit); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); + bool getTLSEnabled() const; + void setTLSEnabled(bool tLSEnabled); + std::string getOpenSuperAcl() const; + void setOpenSuperAcl(const std::string &openSuperAcl); + bool getEurekaSupported() const; + void setEurekaSupported(bool eurekaSupported); + std::string getSnapshotCount() const; + void setSnapshotCount(const std::string &snapshotCount); + std::string getMinSessionTimeout() const; + void setMinSessionTimeout(const std::string &minSessionTimeout); + std::string getJuteMaxbuffer() const; + void setJuteMaxbuffer(const std::string &juteMaxbuffer); + std::string getConfigType() const; + void setConfigType(const std::string &configType); + std::string getMaxSessionTimeout() const; + void setMaxSessionTimeout(const std::string &maxSessionTimeout); + std::string getTickTime() const; + void setTickTime(const std::string &tickTime); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getAutopurgePurgeInterval() const; void setAutopurgePurgeInterval(const std::string &autopurgePurgeInterval); std::string getAcceptLanguage() const; @@ -80,26 +84,28 @@ public: void setUserName(const std::string &userName); private: - std::string openSuperAcl_; std::string mseSessionId_; bool configAuthEnabled_; std::string passWord_; - std::string snapshotCount_; - std::string minSessionTimeout_; std::string maxClientCnxns_; std::string requestPars_; - std::string juteMaxbuffer_; bool namingAuthEnabled_; - std::string configType_; std::string extendedTypesEnable_; std::string autopurgeSnapRetainCount_; - std::string maxSessionTimeout_; bool configSecretEnabled_; bool mCPEnabled_; - std::string tickTime_; - std::string clusterId_; std::string syncLimit_; std::string instanceId_; + bool tLSEnabled_; + std::string openSuperAcl_; + bool eurekaSupported_; + std::string snapshotCount_; + std::string minSessionTimeout_; + std::string juteMaxbuffer_; + std::string configType_; + std::string maxSessionTimeout_; + std::string tickTime_; + std::string clusterId_; std::string autopurgePurgeInterval_; std::string acceptLanguage_; std::string initLimit_; diff --git a/mse/include/alibabacloud/mse/model/UpdateEngineNamespaceRequest.h b/mse/include/alibabacloud/mse/model/UpdateEngineNamespaceRequest.h index e10bf3be3..ce536ecab 100644 --- a/mse/include/alibabacloud/mse/model/UpdateEngineNamespaceRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateEngineNamespaceRequest.h @@ -32,29 +32,29 @@ public: ~UpdateEngineNamespaceRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + int getServiceCount() const; + void setServiceCount(int serviceCount); + std::string getId() const; + void setId(const std::string &id); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - int getServiceCount() const; - void setServiceCount(int serviceCount); std::string getName() const; 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); private: std::string mseSessionId_; + int serviceCount_; + std::string id_; std::string clusterId_; std::string instanceId_; - int serviceCount_; std::string name_; std::string acceptLanguage_; - std::string id_; std::string desc_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/UpdateFlowRuleRequest.h b/mse/include/alibabacloud/mse/model/UpdateFlowRuleRequest.h new file mode 100644 index 000000000..9f9749ac7 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateFlowRuleRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEFLOWRULEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEFLOWRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateFlowRuleRequest : public RpcServiceRequest { +public: + UpdateFlowRuleRequest(); + ~UpdateFlowRuleRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + int getControlBehavior() const; + void setControlBehavior(int controlBehavior); + int getThreshold() const; + void setThreshold(int threshold); + std::string getAppName() const; + void setAppName(const std::string &appName); + bool getEnable() const; + void setEnable(bool enable); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + int getMaxQueueingTimeMs() const; + void setMaxQueueingTimeMs(int maxQueueingTimeMs); + long getRuleId() const; + void setRuleId(long ruleId); + +private: + std::string mseSessionId_; + int controlBehavior_; + int threshold_; + std::string appName_; + bool enable_; + std::string appId_; + std::string _namespace_; + std::string acceptLanguage_; + int maxQueueingTimeMs_; + long ruleId_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEFLOWRULEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateFlowRuleResult.h b/mse/include/alibabacloud/mse/model/UpdateFlowRuleResult.h new file mode 100644 index 000000000..51850c5a9 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateFlowRuleResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEFLOWRULERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEFLOWRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateFlowRuleResult : public ServiceResult + { + public: + struct Data + { + std::string appId; + int controlBehavior; + std::string resource; + int maxQueueingTimeMs; + bool enable; + std::string _namespace; + long id; + std::string appName; + float threshold; + }; + + + UpdateFlowRuleResult(); + explicit UpdateFlowRuleResult(const std::string &payload); + ~UpdateFlowRuleResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEFLOWRULERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerRequest.h new file mode 100644 index 000000000..54d267b97 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerRequest.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_UPDATEGATEWAYAUTHCONSUMERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateGatewayAuthConsumerRequest : public RpcServiceRequest { +public: + UpdateGatewayAuthConsumerRequest(); + ~UpdateGatewayAuthConsumerRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getKeyName() const; + void setKeyName(const std::string &keyName); + long getId() const; + void setId(long id); + std::string getTokenPrefix() const; + void setTokenPrefix(const std::string &tokenPrefix); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getJwks() const; + void setJwks(const std::string &jwks); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getTokenPosition() const; + void setTokenPosition(const std::string &tokenPosition); + std::string getEncodeType() const; + void setEncodeType(const std::string &encodeType); + std::string getKeyValue() const; + void setKeyValue(const std::string &keyValue); + bool getTokenPass() const; + void setTokenPass(bool tokenPass); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getTokenName() const; + void setTokenName(const std::string &tokenName); + +private: + std::string mseSessionId_; + std::string keyName_; + long id_; + std::string tokenPrefix_; + std::string gatewayUniqueId_; + std::string jwks_; + std::string description_; + std::string tokenPosition_; + std::string encodeType_; + std::string keyValue_; + bool tokenPass_; + std::string acceptLanguage_; + std::string tokenName_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceRequest.h new file mode 100644 index 000000000..32e8f542e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceRequest.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESOURCEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateGatewayAuthConsumerResourceRequest : public RpcServiceRequest { +public: + struct ResourceList { + long routeId; + std::string routeName; + }; + UpdateGatewayAuthConsumerResourceRequest(); + ~UpdateGatewayAuthConsumerResourceRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getConsumerId() const; + void setConsumerId(long consumerId); + std::vector getResourceList() const; + void setResourceList(const std::vector &resourceList); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + std::string gatewayUniqueId_; + long consumerId_; + std::vector resourceList_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESOURCEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceResult.h new file mode 100644 index 000000000..fd2be5561 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESOURCERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateGatewayAuthConsumerResourceResult : public ServiceResult + { + public: + + + UpdateGatewayAuthConsumerResourceResult(); + explicit UpdateGatewayAuthConsumerResourceResult(const std::string &payload); + ~UpdateGatewayAuthConsumerResourceResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + bool getData()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + bool data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESOURCERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceStatusRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceStatusRequest.h new file mode 100644 index 000000000..bb205e74e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceStatusRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESOURCESTATUSREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESOURCESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateGatewayAuthConsumerResourceStatusRequest : public RpcServiceRequest { +public: + UpdateGatewayAuthConsumerResourceStatusRequest(); + ~UpdateGatewayAuthConsumerResourceStatusRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getConsumerId() const; + void setConsumerId(long consumerId); + std::string getIdList() const; + void setIdList(const std::string &idList); + bool getResourceStatus() const; + void setResourceStatus(bool resourceStatus); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + std::string gatewayUniqueId_; + long consumerId_; + std::string idList_; + bool resourceStatus_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESOURCESTATUSREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceStatusResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceStatusResult.h new file mode 100644 index 000000000..42ceec261 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResourceStatusResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESOURCESTATUSRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESOURCESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateGatewayAuthConsumerResourceStatusResult : public ServiceResult + { + public: + + + UpdateGatewayAuthConsumerResourceStatusResult(); + explicit UpdateGatewayAuthConsumerResourceStatusResult(const std::string &payload); + ~UpdateGatewayAuthConsumerResourceStatusResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + bool getData()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + bool data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESOURCESTATUSRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResult.h new file mode 100644 index 000000000..b1f39e62e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateGatewayAuthConsumerResult : public ServiceResult + { + public: + + + UpdateGatewayAuthConsumerResult(); + explicit UpdateGatewayAuthConsumerResult(const std::string &payload); + ~UpdateGatewayAuthConsumerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + long getData()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + long data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerStatusRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerStatusRequest.h new file mode 100644 index 000000000..1d8fb63dc --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerStatusRequest.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_UPDATEGATEWAYAUTHCONSUMERSTATUSREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateGatewayAuthConsumerStatusRequest : public RpcServiceRequest { +public: + UpdateGatewayAuthConsumerStatusRequest(); + ~UpdateGatewayAuthConsumerStatusRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getId() const; + void setId(long id); + bool getConsumerStatus() const; + void setConsumerStatus(bool consumerStatus); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string mseSessionId_; + std::string gatewayUniqueId_; + long id_; + bool consumerStatus_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERSTATUSREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerStatusResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerStatusResult.h new file mode 100644 index 000000000..9dfa10c27 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayAuthConsumerStatusResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERSTATUSRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateGatewayAuthConsumerStatusResult : public ServiceResult + { + public: + + + UpdateGatewayAuthConsumerStatusResult(); + explicit UpdateGatewayAuthConsumerStatusResult(const std::string &payload); + ~UpdateGatewayAuthConsumerStatusResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + bool getData()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + bool data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYAUTHCONSUMERSTATUSRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayRouteAuthRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteAuthRequest.h new file mode 100644 index 000000000..2244a323d --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteAuthRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEAUTHREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEAUTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateGatewayRouteAuthRequest : public RpcServiceRequest { +public: + struct AuthJSON { + std::string type; + }; + UpdateGatewayRouteAuthRequest(); + ~UpdateGatewayRouteAuthRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getId() const; + void setId(long id); + long getGatewayId() const; + void setGatewayId(long gatewayId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + AuthJSON getAuthJSON() const; + void setAuthJSON(const AuthJSON &authJSON); + +private: + std::string mseSessionId_; + std::string gatewayUniqueId_; + long id_; + long gatewayId_; + std::string acceptLanguage_; + AuthJSON authJSON_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEAUTHREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayRouteAuthResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteAuthResult.h new file mode 100644 index 000000000..0a701c692 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteAuthResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEAUTHRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEAUTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateGatewayRouteAuthResult : public ServiceResult + { + public: + + + UpdateGatewayRouteAuthResult(); + explicit UpdateGatewayRouteAuthResult(const std::string &payload); + ~UpdateGatewayRouteAuthResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + long getData()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + long data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEAUTHRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayRouteRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteRequest.h index b0fc997ba..a9415419e 100644 --- a/mse/include/alibabacloud/mse/model/UpdateGatewayRouteRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteRequest.h @@ -28,6 +28,45 @@ namespace Mse { namespace Model { class ALIBABACLOUD_MSE_EXPORT UpdateGatewayRouteRequest : public RpcServiceRequest { public: + struct Predicates { + struct PathPredicates { + std::string path; + bool ignoreCase; + std::string type; + }; + PathPredicates pathPredicates; + std::string string; + std::vector methodPredicates; + struct HeaderPredicatesItem { + std::string type; + std::string value; + std::string key; + }; + HeaderPredicatesItem headerPredicatesItem; + std::vector headerPredicates; + struct QueryPredicatesItem { + std::string type; + std::string value; + std::string key; + }; + QueryPredicatesItem queryPredicatesItem; + std::vector queryPredicates; + }; + struct DirectResponseJSON { + long code; + std::string body; + }; + struct FallbackServices { + std::string agreementType; + std::string name; + std::string _namespace; + std::string sourceType; + long serviceId; + int percent; + std::string version; + std::string groupName; + int servicePort; + }; struct Services { struct HttpDubboTranscoder { std::string dubboServiceName; @@ -62,102 +101,63 @@ public: std::string groupName; int servicePort; }; - struct Predicates { - struct PathPredicates { - std::string path; - bool ignoreCase; - std::string type; - }; - PathPredicates pathPredicates; - std::string string; - std::vector methodPredicates; - struct HeaderPredicatesItem { - std::string type; - std::string value; - std::string key; - }; - HeaderPredicatesItem headerPredicatesItem; - std::vector headerPredicates; - struct QueryPredicatesItem { - std::string type; - std::string value; - std::string key; - }; - QueryPredicatesItem queryPredicatesItem; - std::vector queryPredicates; - }; struct RedirectJSON { std::string path; int code; std::string host; }; - struct DirectResponseJSON { - long code; - std::string body; - }; - struct FallbackServices { - std::string agreementType; - std::string name; - std::string _namespace; - std::string sourceType; - long serviceId; - int percent; - std::string version; - std::string groupName; - int servicePort; - }; UpdateGatewayRouteRequest(); ~UpdateGatewayRouteRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getGatewayUniqueId() const; - void setGatewayUniqueId(const std::string &gatewayUniqueId); - std::string getDestinationType() const; - void setDestinationType(const std::string &destinationType); std::string getDomainIdListJSON() const; void setDomainIdListJSON(const std::string &domainIdListJSON); long getId() const; void setId(long id); long getGatewayId() const; 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; void setPredicates(const Predicates &predicates); - RedirectJSON getRedirectJSON() const; - void setRedirectJSON(const RedirectJSON &redirectJSON); DirectResponseJSON getDirectResponseJSON() const; void setDirectResponseJSON(const DirectResponseJSON &directResponseJSON); std::string getName() const; void setName(const std::string &name); - std::string getAcceptLanguage() const; - void setAcceptLanguage(const std::string &acceptLanguage); std::vector getFallbackServices() const; void setFallbackServices(const std::vector &fallbackServices); bool getFallback() const; void setFallback(bool fallback); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getDestinationType() const; + void setDestinationType(const std::string &destinationType); + int getRouteOrder() const; + void setRouteOrder(int routeOrder); + std::vector getServices() const; + void setServices(const std::vector &services); + RedirectJSON getRedirectJSON() const; + void setRedirectJSON(const RedirectJSON &redirectJSON); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; - std::string gatewayUniqueId_; - std::string destinationType_; std::string domainIdListJSON_; long id_; long gatewayId_; - int routeOrder_; bool enableWaf_; - std::vector services_; Predicates predicates_; - RedirectJSON redirectJSON_; DirectResponseJSON directResponseJSON_; std::string name_; - std::string acceptLanguage_; std::vector fallbackServices_; bool fallback_; + std::string gatewayUniqueId_; + std::string destinationType_; + int routeOrder_; + std::vector services_; + RedirectJSON redirectJSON_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayRouteResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteResult.h index b9320b52a..2e07bef88 100644 --- a/mse/include/alibabacloud/mse/model/UpdateGatewayRouteResult.h +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string getMessage()const; int getHttpStatusCode()const; long getData()const; + std::string getErrorCode()const; int getCode()const; bool getSuccess()const; @@ -49,6 +50,7 @@ namespace AlibabaCloud std::string message_; int httpStatusCode_; long data_; + std::string errorCode_; int code_; bool success_; diff --git a/mse/include/alibabacloud/mse/model/UpdateImageRequest.h b/mse/include/alibabacloud/mse/model/UpdateImageRequest.h index dac24f6bf..a7dff622f 100644 --- a/mse/include/alibabacloud/mse/model/UpdateImageRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateImageRequest.h @@ -32,18 +32,18 @@ public: ~UpdateImageRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getVersionCode() const; + void setVersionCode(const std::string &versionCode); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::string getVersionCode() const; - void setVersionCode(const std::string &versionCode); private: std::string mseSessionId_; + std::string versionCode_; std::string clusterId_; std::string acceptLanguage_; - std::string versionCode_; }; } // namespace Model } // namespace Mse diff --git a/mse/include/alibabacloud/mse/model/UpdateNacosClusterRequest.h b/mse/include/alibabacloud/mse/model/UpdateNacosClusterRequest.h index 94e4cacaf..1b8038644 100644 --- a/mse/include/alibabacloud/mse/model/UpdateNacosClusterRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateNacosClusterRequest.h @@ -36,18 +36,18 @@ public: void setClusterName(const std::string &clusterName); int getCheckPort() const; void setCheckPort(int checkPort); + std::string getNamespaceId() const; + void setNamespaceId(const std::string &namespaceId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); std::string getGroupName() const; void setGroupName(const std::string &groupName); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - std::string getNamespaceId() const; - void setNamespaceId(const std::string &namespaceId); std::string getHealthChecker() const; void setHealthChecker(const std::string &healthChecker); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::string getServiceName() const; - void setServiceName(const std::string &serviceName); bool getUseInstancePortForCheck() const; void setUseInstancePortForCheck(bool useInstancePortForCheck); @@ -55,12 +55,12 @@ private: std::string mseSessionId_; std::string clusterName_; int checkPort_; + std::string namespaceId_; + std::string serviceName_; std::string groupName_; std::string instanceId_; - std::string namespaceId_; std::string healthChecker_; std::string acceptLanguage_; - std::string serviceName_; bool useInstancePortForCheck_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/UpdateNacosConfigRequest.h b/mse/include/alibabacloud/mse/model/UpdateNacosConfigRequest.h index dfb38971a..d54f63797 100644 --- a/mse/include/alibabacloud/mse/model/UpdateNacosConfigRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateNacosConfigRequest.h @@ -36,8 +36,6 @@ public: void setEncryptedDataKey(const std::string &encryptedDataKey); std::string getType() const; void setType(const std::string &type); - std::string getContent() const; - void setContent(const std::string &content); std::string getAppName() const; void setAppName(const std::string &appName); std::string getNamespaceId() const; @@ -50,12 +48,14 @@ public: void setBetaIps(const std::string &betaIps); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); + std::string getDesc() const; + void setDesc(const std::string &desc); + std::string getContent() const; + void setContent(const std::string &content); std::string getDataId() const; void setDataId(const std::string &dataId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::string getDesc() const; - void setDesc(const std::string &desc); std::string getMd5() const; void setMd5(const std::string &md5); @@ -63,16 +63,16 @@ private: std::string mseSessionId_; std::string encryptedDataKey_; std::string type_; - std::string content_; std::string appName_; std::string namespaceId_; std::string group_; std::string tags_; std::string betaIps_; std::string instanceId_; + std::string desc_; + std::string content_; std::string dataId_; std::string acceptLanguage_; - std::string desc_; std::string md5_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/UpdateNacosInstanceRequest.h b/mse/include/alibabacloud/mse/model/UpdateNacosInstanceRequest.h index 0808fef30..1b87a1545 100644 --- a/mse/include/alibabacloud/mse/model/UpdateNacosInstanceRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateNacosInstanceRequest.h @@ -38,12 +38,8 @@ public: void setClusterName(const std::string &clusterName); bool getEphemeral() const; void setEphemeral(bool ephemeral); - bool getEnabled() const; - void setEnabled(bool enabled); std::string getNamespaceId() const; void setNamespaceId(const std::string &namespaceId); - std::string getServiceName() const; - void setServiceName(const std::string &serviceName); std::string getIp() const; void setIp(const std::string &ip); std::string getWeight() const; @@ -54,6 +50,10 @@ public: void setInstanceId(const std::string &instanceId); int getPort() const; void setPort(int port); + bool getEnabled() const; + void setEnabled(bool enabled); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); @@ -62,14 +62,14 @@ private: std::string metadata_; std::string clusterName_; bool ephemeral_; - bool enabled_; std::string namespaceId_; - std::string serviceName_; std::string ip_; std::string weight_; std::string groupName_; std::string instanceId_; int port_; + bool enabled_; + std::string serviceName_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/UpdateNacosServiceRequest.h b/mse/include/alibabacloud/mse/model/UpdateNacosServiceRequest.h index 55743f449..36bb7012b 100644 --- a/mse/include/alibabacloud/mse/model/UpdateNacosServiceRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateNacosServiceRequest.h @@ -32,29 +32,29 @@ public: ~UpdateNacosServiceRequest(); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); + std::string getNamespaceId() const; + void setNamespaceId(const std::string &namespaceId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getGroupName() const; void setGroupName(const std::string &groupName); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - std::string getNamespaceId() const; - void setNamespaceId(const std::string &namespaceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); - std::string getServiceName() const; - void setServiceName(const std::string &serviceName); std::string getProtectThreshold() const; void setProtectThreshold(const std::string &protectThreshold); private: std::string mseSessionId_; + std::string namespaceId_; + std::string serviceName_; std::string clusterId_; std::string groupName_; std::string instanceId_; - std::string namespaceId_; std::string acceptLanguage_; - std::string serviceName_; std::string protectThreshold_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/UpdateZnodeRequest.h b/mse/include/alibabacloud/mse/model/UpdateZnodeRequest.h index 7b25f9740..76ae1a4bc 100644 --- a/mse/include/alibabacloud/mse/model/UpdateZnodeRequest.h +++ b/mse/include/alibabacloud/mse/model/UpdateZnodeRequest.h @@ -34,21 +34,21 @@ public: void setMseSessionId(const std::string &mseSessionId); std::string getData() const; void setData(const std::string &data); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); std::string getPath() const; void setPath(const std::string &path); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: std::string mseSessionId_; std::string data_; - std::string clusterId_; std::string path_; std::string requestPars_; + std::string clusterId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/include/alibabacloud/mse/model/UpgradeClusterRequest.h b/mse/include/alibabacloud/mse/model/UpgradeClusterRequest.h index 393ad2415..74e372079 100644 --- a/mse/include/alibabacloud/mse/model/UpgradeClusterRequest.h +++ b/mse/include/alibabacloud/mse/model/UpgradeClusterRequest.h @@ -30,22 +30,22 @@ class ALIBABACLOUD_MSE_EXPORT UpgradeClusterRequest : public RpcServiceRequest { public: UpgradeClusterRequest(); ~UpgradeClusterRequest(); - std::string getUpgradeVersion() const; - void setUpgradeVersion(const std::string &upgradeVersion); std::string getMseSessionId() const; void setMseSessionId(const std::string &mseSessionId); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); std::string getRequestPars() const; void setRequestPars(const std::string &requestPars); + std::string getUpgradeVersion() const; + void setUpgradeVersion(const std::string &upgradeVersion); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); private: - std::string upgradeVersion_; std::string mseSessionId_; - std::string instanceId_; std::string requestPars_; + std::string upgradeVersion_; + std::string instanceId_; std::string acceptLanguage_; }; } // namespace Model diff --git a/mse/src/MseClient.cc b/mse/src/MseClient.cc index 71fc09f1c..55650f5cf 100644 --- a/mse/src/MseClient.cc +++ b/mse/src/MseClient.cc @@ -51,6 +51,42 @@ MseClient::MseClient(const std::string & accessKeyId, const std::string & access MseClient::~MseClient() {} +MseClient::AddAuthPolicyOutcome MseClient::addAuthPolicy(const AddAuthPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddAuthPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddAuthPolicyOutcome(AddAuthPolicyResult(outcome.result())); + else + return AddAuthPolicyOutcome(outcome.error()); +} + +void MseClient::addAuthPolicyAsync(const AddAuthPolicyRequest& request, const AddAuthPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addAuthPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddAuthPolicyOutcomeCallable MseClient::addAuthPolicyCallable(const AddAuthPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addAuthPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::AddAuthResourceOutcome MseClient::addAuthResource(const AddAuthResourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +195,42 @@ MseClient::AddGatewayOutcomeCallable MseClient::addGatewayCallable(const AddGate return task->get_future(); } +MseClient::AddGatewayAuthConsumerOutcome MseClient::addGatewayAuthConsumer(const AddGatewayAuthConsumerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddGatewayAuthConsumerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddGatewayAuthConsumerOutcome(AddGatewayAuthConsumerResult(outcome.result())); + else + return AddGatewayAuthConsumerOutcome(outcome.error()); +} + +void MseClient::addGatewayAuthConsumerAsync(const AddGatewayAuthConsumerRequest& request, const AddGatewayAuthConsumerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addGatewayAuthConsumer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddGatewayAuthConsumerOutcomeCallable MseClient::addGatewayAuthConsumerCallable(const AddGatewayAuthConsumerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addGatewayAuthConsumer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::AddGatewayDomainOutcome MseClient::addGatewayDomain(const AddGatewayDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +699,42 @@ MseClient::CreateApplicationOutcomeCallable MseClient::createApplicationCallable return task->get_future(); } +MseClient::CreateCircuitBreakerRuleOutcome MseClient::createCircuitBreakerRule(const CreateCircuitBreakerRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCircuitBreakerRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCircuitBreakerRuleOutcome(CreateCircuitBreakerRuleResult(outcome.result())); + else + return CreateCircuitBreakerRuleOutcome(outcome.error()); +} + +void MseClient::createCircuitBreakerRuleAsync(const CreateCircuitBreakerRuleRequest& request, const CreateCircuitBreakerRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCircuitBreakerRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::CreateCircuitBreakerRuleOutcomeCallable MseClient::createCircuitBreakerRuleCallable(const CreateCircuitBreakerRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCircuitBreakerRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::CreateClusterOutcome MseClient::createCluster(const CreateClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,6 +807,42 @@ MseClient::CreateEngineNamespaceOutcomeCallable MseClient::createEngineNamespace return task->get_future(); } +MseClient::CreateFlowRuleOutcome MseClient::createFlowRule(const CreateFlowRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFlowRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFlowRuleOutcome(CreateFlowRuleResult(outcome.result())); + else + return CreateFlowRuleOutcome(outcome.error()); +} + +void MseClient::createFlowRuleAsync(const CreateFlowRuleRequest& request, const CreateFlowRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFlowRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::CreateFlowRuleOutcomeCallable MseClient::createFlowRuleCallable(const CreateFlowRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFlowRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::CreateMseServiceApplicationOutcome MseClient::createMseServiceApplication(const CreateMseServiceApplicationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,6 +1131,42 @@ MseClient::DeleteAuthResourceOutcomeCallable MseClient::deleteAuthResourceCallab return task->get_future(); } +MseClient::DeleteCircuitBreakerRulesOutcome MseClient::deleteCircuitBreakerRules(const DeleteCircuitBreakerRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCircuitBreakerRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCircuitBreakerRulesOutcome(DeleteCircuitBreakerRulesResult(outcome.result())); + else + return DeleteCircuitBreakerRulesOutcome(outcome.error()); +} + +void MseClient::deleteCircuitBreakerRulesAsync(const DeleteCircuitBreakerRulesRequest& request, const DeleteCircuitBreakerRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCircuitBreakerRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteCircuitBreakerRulesOutcomeCallable MseClient::deleteCircuitBreakerRulesCallable(const DeleteCircuitBreakerRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCircuitBreakerRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::DeleteClusterOutcome MseClient::deleteCluster(const DeleteClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1239,42 @@ MseClient::DeleteEngineNamespaceOutcomeCallable MseClient::deleteEngineNamespace return task->get_future(); } +MseClient::DeleteFlowRulesOutcome MseClient::deleteFlowRules(const DeleteFlowRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFlowRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFlowRulesOutcome(DeleteFlowRulesResult(outcome.result())); + else + return DeleteFlowRulesOutcome(outcome.error()); +} + +void MseClient::deleteFlowRulesAsync(const DeleteFlowRulesRequest& request, const DeleteFlowRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFlowRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteFlowRulesOutcomeCallable MseClient::deleteFlowRulesCallable(const DeleteFlowRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFlowRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::DeleteGatewayOutcome MseClient::deleteGateway(const DeleteGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,6 +1311,78 @@ MseClient::DeleteGatewayOutcomeCallable MseClient::deleteGatewayCallable(const D return task->get_future(); } +MseClient::DeleteGatewayAuthConsumerOutcome MseClient::deleteGatewayAuthConsumer(const DeleteGatewayAuthConsumerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewayAuthConsumerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewayAuthConsumerOutcome(DeleteGatewayAuthConsumerResult(outcome.result())); + else + return DeleteGatewayAuthConsumerOutcome(outcome.error()); +} + +void MseClient::deleteGatewayAuthConsumerAsync(const DeleteGatewayAuthConsumerRequest& request, const DeleteGatewayAuthConsumerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGatewayAuthConsumer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteGatewayAuthConsumerOutcomeCallable MseClient::deleteGatewayAuthConsumerCallable(const DeleteGatewayAuthConsumerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGatewayAuthConsumer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteGatewayAuthConsumerResourceOutcome MseClient::deleteGatewayAuthConsumerResource(const DeleteGatewayAuthConsumerResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewayAuthConsumerResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewayAuthConsumerResourceOutcome(DeleteGatewayAuthConsumerResourceResult(outcome.result())); + else + return DeleteGatewayAuthConsumerResourceOutcome(outcome.error()); +} + +void MseClient::deleteGatewayAuthConsumerResourceAsync(const DeleteGatewayAuthConsumerResourceRequest& request, const DeleteGatewayAuthConsumerResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGatewayAuthConsumerResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteGatewayAuthConsumerResourceOutcomeCallable MseClient::deleteGatewayAuthConsumerResourceCallable(const DeleteGatewayAuthConsumerResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGatewayAuthConsumerResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::DeleteGatewayDomainOutcome MseClient::deleteGatewayDomain(const DeleteGatewayDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,6 +1743,42 @@ MseClient::DeleteNacosServiceOutcomeCallable MseClient::deleteNacosServiceCallab return task->get_future(); } +MseClient::DeleteNamespaceOutcome MseClient::deleteNamespace(const DeleteNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNamespaceOutcome(DeleteNamespaceResult(outcome.result())); + else + return DeleteNamespaceOutcome(outcome.error()); +} + +void MseClient::deleteNamespaceAsync(const DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteNamespaceOutcomeCallable MseClient::deleteNamespaceCallable(const DeleteNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::DeleteSecurityGroupRuleOutcome MseClient::deleteSecurityGroupRule(const DeleteSecurityGroupRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,6 +1995,78 @@ MseClient::ExportNacosConfigOutcomeCallable MseClient::exportNacosConfigCallable return task->get_future(); } +MseClient::ExportZookeeperDataOutcome MseClient::exportZookeeperData(const ExportZookeeperDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExportZookeeperDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExportZookeeperDataOutcome(ExportZookeeperDataResult(outcome.result())); + else + return ExportZookeeperDataOutcome(outcome.error()); +} + +void MseClient::exportZookeeperDataAsync(const ExportZookeeperDataRequest& request, const ExportZookeeperDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exportZookeeperData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ExportZookeeperDataOutcomeCallable MseClient::exportZookeeperDataCallable(const ExportZookeeperDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exportZookeeperData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::FetchLosslessRuleListOutcome MseClient::fetchLosslessRuleList(const FetchLosslessRuleListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FetchLosslessRuleListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FetchLosslessRuleListOutcome(FetchLosslessRuleListResult(outcome.result())); + else + return FetchLosslessRuleListOutcome(outcome.error()); +} + +void MseClient::fetchLosslessRuleListAsync(const FetchLosslessRuleListRequest& request, const FetchLosslessRuleListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, fetchLosslessRuleList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::FetchLosslessRuleListOutcomeCallable MseClient::fetchLosslessRuleListCallable(const FetchLosslessRuleListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->fetchLosslessRuleList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::GetAppMessageQueueRouteOutcome MseClient::getAppMessageQueueRoute(const GetAppMessageQueueRouteRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,6 +2283,42 @@ MseClient::GetGatewayOutcomeCallable MseClient::getGatewayCallable(const GetGate return task->get_future(); } +MseClient::GetGatewayAuthConsumerDetailOutcome MseClient::getGatewayAuthConsumerDetail(const GetGatewayAuthConsumerDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGatewayAuthConsumerDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGatewayAuthConsumerDetailOutcome(GetGatewayAuthConsumerDetailResult(outcome.result())); + else + return GetGatewayAuthConsumerDetailOutcome(outcome.error()); +} + +void MseClient::getGatewayAuthConsumerDetailAsync(const GetGatewayAuthConsumerDetailRequest& request, const GetGatewayAuthConsumerDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGatewayAuthConsumerDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetGatewayAuthConsumerDetailOutcomeCallable MseClient::getGatewayAuthConsumerDetailCallable(const GetGatewayAuthConsumerDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGatewayAuthConsumerDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::GetGatewayDomainDetailOutcome MseClient::getGatewayDomainDetail(const GetGatewayDomainDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,6 +2607,42 @@ MseClient::GetKubernetesSourceOutcomeCallable MseClient::getKubernetesSourceCall return task->get_future(); } +MseClient::GetLosslessRuleByAppOutcome MseClient::getLosslessRuleByApp(const GetLosslessRuleByAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLosslessRuleByAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLosslessRuleByAppOutcome(GetLosslessRuleByAppResult(outcome.result())); + else + return GetLosslessRuleByAppOutcome(outcome.error()); +} + +void MseClient::getLosslessRuleByAppAsync(const GetLosslessRuleByAppRequest& request, const GetLosslessRuleByAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLosslessRuleByApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetLosslessRuleByAppOutcomeCallable MseClient::getLosslessRuleByAppCallable(const GetLosslessRuleByAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLosslessRuleByApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::GetMseFeatureSwitchOutcome MseClient::getMseFeatureSwitch(const GetMseFeatureSwitchRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2463,6 +2931,42 @@ MseClient::GetServiceListOutcomeCallable MseClient::getServiceListCallable(const return task->get_future(); } +MseClient::GetServiceListPageOutcome MseClient::getServiceListPage(const GetServiceListPageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceListPageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceListPageOutcome(GetServiceListPageResult(outcome.result())); + else + return GetServiceListPageOutcome(outcome.error()); +} + +void MseClient::getServiceListPageAsync(const GetServiceListPageRequest& request, const GetServiceListPageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceListPage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetServiceListPageOutcomeCallable MseClient::getServiceListPageCallable(const GetServiceListPageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceListPage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::GetServiceListenersOutcome MseClient::getServiceListeners(const GetServiceListenersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2499,6 +3003,42 @@ MseClient::GetServiceListenersOutcomeCallable MseClient::getServiceListenersCall return task->get_future(); } +MseClient::GetServiceMethodPageOutcome MseClient::getServiceMethodPage(const GetServiceMethodPageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceMethodPageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceMethodPageOutcome(GetServiceMethodPageResult(outcome.result())); + else + return GetServiceMethodPageOutcome(outcome.error()); +} + +void MseClient::getServiceMethodPageAsync(const GetServiceMethodPageRequest& request, const GetServiceMethodPageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceMethodPage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetServiceMethodPageOutcomeCallable MseClient::getServiceMethodPageCallable(const GetServiceMethodPageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceMethodPage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::GetTagsBySwimmingLaneGroupIdOutcome MseClient::getTagsBySwimmingLaneGroupId(const GetTagsBySwimmingLaneGroupIdRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,6 +3399,78 @@ MseClient::ListApplicationsWithTagRulesOutcomeCallable MseClient::listApplicatio return task->get_future(); } +MseClient::ListAuthPolicyOutcome MseClient::listAuthPolicy(const ListAuthPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAuthPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAuthPolicyOutcome(ListAuthPolicyResult(outcome.result())); + else + return ListAuthPolicyOutcome(outcome.error()); +} + +void MseClient::listAuthPolicyAsync(const ListAuthPolicyRequest& request, const ListAuthPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAuthPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListAuthPolicyOutcomeCallable MseClient::listAuthPolicyCallable(const ListAuthPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAuthPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListCircuitBreakerRulesOutcome MseClient::listCircuitBreakerRules(const ListCircuitBreakerRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCircuitBreakerRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCircuitBreakerRulesOutcome(ListCircuitBreakerRulesResult(outcome.result())); + else + return ListCircuitBreakerRulesOutcome(outcome.error()); +} + +void MseClient::listCircuitBreakerRulesAsync(const ListCircuitBreakerRulesRequest& request, const ListCircuitBreakerRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCircuitBreakerRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListCircuitBreakerRulesOutcomeCallable MseClient::listCircuitBreakerRulesCallable(const ListCircuitBreakerRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCircuitBreakerRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::ListClusterConnectionTypesOutcome MseClient::listClusterConnectionTypes(const ListClusterConnectionTypesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3183,6 +3795,78 @@ MseClient::ListEurekaServicesOutcomeCallable MseClient::listEurekaServicesCallab return task->get_future(); } +MseClient::ListExportZookeeperDataOutcome MseClient::listExportZookeeperData(const ListExportZookeeperDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListExportZookeeperDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListExportZookeeperDataOutcome(ListExportZookeeperDataResult(outcome.result())); + else + return ListExportZookeeperDataOutcome(outcome.error()); +} + +void MseClient::listExportZookeeperDataAsync(const ListExportZookeeperDataRequest& request, const ListExportZookeeperDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listExportZookeeperData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListExportZookeeperDataOutcomeCallable MseClient::listExportZookeeperDataCallable(const ListExportZookeeperDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listExportZookeeperData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListFlowRulesOutcome MseClient::listFlowRules(const ListFlowRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFlowRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFlowRulesOutcome(ListFlowRulesResult(outcome.result())); + else + return ListFlowRulesOutcome(outcome.error()); +} + +void MseClient::listFlowRulesAsync(const ListFlowRulesRequest& request, const ListFlowRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFlowRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListFlowRulesOutcomeCallable MseClient::listFlowRulesCallable(const ListFlowRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFlowRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::ListGatewayOutcome MseClient::listGateway(const ListGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,6 +3903,78 @@ MseClient::ListGatewayOutcomeCallable MseClient::listGatewayCallable(const ListG return task->get_future(); } +MseClient::ListGatewayAuthConsumerOutcome MseClient::listGatewayAuthConsumer(const ListGatewayAuthConsumerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGatewayAuthConsumerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGatewayAuthConsumerOutcome(ListGatewayAuthConsumerResult(outcome.result())); + else + return ListGatewayAuthConsumerOutcome(outcome.error()); +} + +void MseClient::listGatewayAuthConsumerAsync(const ListGatewayAuthConsumerRequest& request, const ListGatewayAuthConsumerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGatewayAuthConsumer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListGatewayAuthConsumerOutcomeCallable MseClient::listGatewayAuthConsumerCallable(const ListGatewayAuthConsumerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGatewayAuthConsumer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListGatewayAuthConsumerResourceOutcome MseClient::listGatewayAuthConsumerResource(const ListGatewayAuthConsumerResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGatewayAuthConsumerResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGatewayAuthConsumerResourceOutcome(ListGatewayAuthConsumerResourceResult(outcome.result())); + else + return ListGatewayAuthConsumerResourceOutcome(outcome.error()); +} + +void MseClient::listGatewayAuthConsumerResourceAsync(const ListGatewayAuthConsumerResourceRequest& request, const ListGatewayAuthConsumerResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGatewayAuthConsumerResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListGatewayAuthConsumerResourceOutcomeCallable MseClient::listGatewayAuthConsumerResourceCallable(const ListGatewayAuthConsumerResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGatewayAuthConsumerResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::ListGatewayDomainOutcome MseClient::listGatewayDomain(const ListGatewayDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3291,6 +4047,42 @@ MseClient::ListGatewayRouteOutcomeCallable MseClient::listGatewayRouteCallable(c return task->get_future(); } +MseClient::ListGatewayRouteOnAuthOutcome MseClient::listGatewayRouteOnAuth(const ListGatewayRouteOnAuthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGatewayRouteOnAuthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGatewayRouteOnAuthOutcome(ListGatewayRouteOnAuthResult(outcome.result())); + else + return ListGatewayRouteOnAuthOutcome(outcome.error()); +} + +void MseClient::listGatewayRouteOnAuthAsync(const ListGatewayRouteOnAuthRequest& request, const ListGatewayRouteOnAuthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGatewayRouteOnAuth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListGatewayRouteOnAuthOutcomeCallable MseClient::listGatewayRouteOnAuthCallable(const ListGatewayRouteOnAuthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGatewayRouteOnAuth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::ListGatewayServiceOutcome MseClient::listGatewayService(const ListGatewayServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4551,6 +5343,42 @@ MseClient::QueryMonitorOutcomeCallable MseClient::queryMonitorCallable(const Que return task->get_future(); } +MseClient::QueryNamespaceOutcome MseClient::queryNamespace(const QueryNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryNamespaceOutcome(QueryNamespaceResult(outcome.result())); + else + return QueryNamespaceOutcome(outcome.error()); +} + +void MseClient::queryNamespaceAsync(const QueryNamespaceRequest& request, const QueryNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QueryNamespaceOutcomeCallable MseClient::queryNamespaceCallable(const QueryNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::QuerySlbSpecOutcome MseClient::querySlbSpec(const QuerySlbSpecRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4659,6 +5487,78 @@ MseClient::QueryZnodeDetailOutcomeCallable MseClient::queryZnodeDetailCallable(c return task->get_future(); } +MseClient::RemoveApplicationOutcome MseClient::removeApplication(const RemoveApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveApplicationOutcome(RemoveApplicationResult(outcome.result())); + else + return RemoveApplicationOutcome(outcome.error()); +} + +void MseClient::removeApplicationAsync(const RemoveApplicationRequest& request, const RemoveApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::RemoveApplicationOutcomeCallable MseClient::removeApplicationCallable(const RemoveApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::RemoveAuthPolicyOutcome MseClient::removeAuthPolicy(const RemoveAuthPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveAuthPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveAuthPolicyOutcome(RemoveAuthPolicyResult(outcome.result())); + else + return RemoveAuthPolicyOutcome(outcome.error()); +} + +void MseClient::removeAuthPolicyAsync(const RemoveAuthPolicyRequest& request, const RemoveAuthPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeAuthPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::RemoveAuthPolicyOutcomeCallable MseClient::removeAuthPolicyCallable(const RemoveAuthPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeAuthPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::RestartClusterOutcome MseClient::restartCluster(const RestartClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4875,6 +5775,42 @@ MseClient::UpdateAclOutcomeCallable MseClient::updateAclCallable(const UpdateAcl return task->get_future(); } +MseClient::UpdateAuthPolicyOutcome MseClient::updateAuthPolicy(const UpdateAuthPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAuthPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAuthPolicyOutcome(UpdateAuthPolicyResult(outcome.result())); + else + return UpdateAuthPolicyOutcome(outcome.error()); +} + +void MseClient::updateAuthPolicyAsync(const UpdateAuthPolicyRequest& request, const UpdateAuthPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAuthPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateAuthPolicyOutcomeCallable MseClient::updateAuthPolicyCallable(const UpdateAuthPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAuthPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::UpdateBlackWhiteListOutcome MseClient::updateBlackWhiteList(const UpdateBlackWhiteListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4911,6 +5847,42 @@ MseClient::UpdateBlackWhiteListOutcomeCallable MseClient::updateBlackWhiteListCa return task->get_future(); } +MseClient::UpdateCircuitBreakerRuleOutcome MseClient::updateCircuitBreakerRule(const UpdateCircuitBreakerRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateCircuitBreakerRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateCircuitBreakerRuleOutcome(UpdateCircuitBreakerRuleResult(outcome.result())); + else + return UpdateCircuitBreakerRuleOutcome(outcome.error()); +} + +void MseClient::updateCircuitBreakerRuleAsync(const UpdateCircuitBreakerRuleRequest& request, const UpdateCircuitBreakerRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCircuitBreakerRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateCircuitBreakerRuleOutcomeCallable MseClient::updateCircuitBreakerRuleCallable(const UpdateCircuitBreakerRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCircuitBreakerRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::UpdateClusterOutcome MseClient::updateCluster(const UpdateClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5055,6 +6027,186 @@ MseClient::UpdateEngineNamespaceOutcomeCallable MseClient::updateEngineNamespace return task->get_future(); } +MseClient::UpdateFlowRuleOutcome MseClient::updateFlowRule(const UpdateFlowRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateFlowRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateFlowRuleOutcome(UpdateFlowRuleResult(outcome.result())); + else + return UpdateFlowRuleOutcome(outcome.error()); +} + +void MseClient::updateFlowRuleAsync(const UpdateFlowRuleRequest& request, const UpdateFlowRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateFlowRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateFlowRuleOutcomeCallable MseClient::updateFlowRuleCallable(const UpdateFlowRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateFlowRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateGatewayAuthConsumerOutcome MseClient::updateGatewayAuthConsumer(const UpdateGatewayAuthConsumerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayAuthConsumerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayAuthConsumerOutcome(UpdateGatewayAuthConsumerResult(outcome.result())); + else + return UpdateGatewayAuthConsumerOutcome(outcome.error()); +} + +void MseClient::updateGatewayAuthConsumerAsync(const UpdateGatewayAuthConsumerRequest& request, const UpdateGatewayAuthConsumerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayAuthConsumer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateGatewayAuthConsumerOutcomeCallable MseClient::updateGatewayAuthConsumerCallable(const UpdateGatewayAuthConsumerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayAuthConsumer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateGatewayAuthConsumerResourceOutcome MseClient::updateGatewayAuthConsumerResource(const UpdateGatewayAuthConsumerResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayAuthConsumerResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayAuthConsumerResourceOutcome(UpdateGatewayAuthConsumerResourceResult(outcome.result())); + else + return UpdateGatewayAuthConsumerResourceOutcome(outcome.error()); +} + +void MseClient::updateGatewayAuthConsumerResourceAsync(const UpdateGatewayAuthConsumerResourceRequest& request, const UpdateGatewayAuthConsumerResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayAuthConsumerResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateGatewayAuthConsumerResourceOutcomeCallable MseClient::updateGatewayAuthConsumerResourceCallable(const UpdateGatewayAuthConsumerResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayAuthConsumerResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateGatewayAuthConsumerResourceStatusOutcome MseClient::updateGatewayAuthConsumerResourceStatus(const UpdateGatewayAuthConsumerResourceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayAuthConsumerResourceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayAuthConsumerResourceStatusOutcome(UpdateGatewayAuthConsumerResourceStatusResult(outcome.result())); + else + return UpdateGatewayAuthConsumerResourceStatusOutcome(outcome.error()); +} + +void MseClient::updateGatewayAuthConsumerResourceStatusAsync(const UpdateGatewayAuthConsumerResourceStatusRequest& request, const UpdateGatewayAuthConsumerResourceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayAuthConsumerResourceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateGatewayAuthConsumerResourceStatusOutcomeCallable MseClient::updateGatewayAuthConsumerResourceStatusCallable(const UpdateGatewayAuthConsumerResourceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayAuthConsumerResourceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateGatewayAuthConsumerStatusOutcome MseClient::updateGatewayAuthConsumerStatus(const UpdateGatewayAuthConsumerStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayAuthConsumerStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayAuthConsumerStatusOutcome(UpdateGatewayAuthConsumerStatusResult(outcome.result())); + else + return UpdateGatewayAuthConsumerStatusOutcome(outcome.error()); +} + +void MseClient::updateGatewayAuthConsumerStatusAsync(const UpdateGatewayAuthConsumerStatusRequest& request, const UpdateGatewayAuthConsumerStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayAuthConsumerStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateGatewayAuthConsumerStatusOutcomeCallable MseClient::updateGatewayAuthConsumerStatusCallable(const UpdateGatewayAuthConsumerStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayAuthConsumerStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::UpdateGatewayDomainOutcome MseClient::updateGatewayDomain(const UpdateGatewayDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5199,6 +6351,42 @@ MseClient::UpdateGatewayRouteOutcomeCallable MseClient::updateGatewayRouteCallab return task->get_future(); } +MseClient::UpdateGatewayRouteAuthOutcome MseClient::updateGatewayRouteAuth(const UpdateGatewayRouteAuthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayRouteAuthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayRouteAuthOutcome(UpdateGatewayRouteAuthResult(outcome.result())); + else + return UpdateGatewayRouteAuthOutcome(outcome.error()); +} + +void MseClient::updateGatewayRouteAuthAsync(const UpdateGatewayRouteAuthRequest& request, const UpdateGatewayRouteAuthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayRouteAuth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateGatewayRouteAuthOutcomeCallable MseClient::updateGatewayRouteAuthCallable(const UpdateGatewayRouteAuthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayRouteAuth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseClient::UpdateGatewayRouteCORSOutcome MseClient::updateGatewayRouteCORS(const UpdateGatewayRouteCORSRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/mse/src/model/AddAuthPolicyRequest.cc b/mse/src/model/AddAuthPolicyRequest.cc new file mode 100644 index 000000000..7cab03f24 --- /dev/null +++ b/mse/src/model/AddAuthPolicyRequest.cc @@ -0,0 +1,135 @@ +/* + * 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::AddAuthPolicyRequest; + +AddAuthPolicyRequest::AddAuthPolicyRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddAuthPolicy") { + setMethod(HttpRequest::Method::Post); +} + +AddAuthPolicyRequest::~AddAuthPolicyRequest() {} + +std::string AddAuthPolicyRequest::getMseSessionId() const { + return mseSessionId_; +} + +void AddAuthPolicyRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string AddAuthPolicyRequest::getAuthRule() const { + return authRule_; +} + +void AddAuthPolicyRequest::setAuthRule(const std::string &authRule) { + authRule_ = authRule; + setParameter(std::string("AuthRule"), authRule); +} + +std::string AddAuthPolicyRequest::getSource() const { + return source_; +} + +void AddAuthPolicyRequest::setSource(const std::string &source) { + source_ = source; + setParameter(std::string("Source"), source); +} + +int AddAuthPolicyRequest::getAuthType() const { + return authType_; +} + +void AddAuthPolicyRequest::setAuthType(int authType) { + authType_ = authType; + setParameter(std::string("AuthType"), std::to_string(authType)); +} + +std::string AddAuthPolicyRequest::getProtocol() const { + return protocol_; +} + +void AddAuthPolicyRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +std::string AddAuthPolicyRequest::getEnable() const { + return enable_; +} + +void AddAuthPolicyRequest::setEnable(const std::string &enable) { + enable_ = enable; + setParameter(std::string("Enable"), enable); +} + +std::string AddAuthPolicyRequest::getK8sNamespace() const { + return k8sNamespace_; +} + +void AddAuthPolicyRequest::setK8sNamespace(const std::string &k8sNamespace) { + k8sNamespace_ = k8sNamespace; + setParameter(std::string("K8sNamespace"), k8sNamespace); +} + +std::string AddAuthPolicyRequest::getAppId() const { + return appId_; +} + +void AddAuthPolicyRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string AddAuthPolicyRequest::getName() const { + return name_; +} + +void AddAuthPolicyRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string AddAuthPolicyRequest::get_Namespace() const { + return _namespace_; +} + +void AddAuthPolicyRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string AddAuthPolicyRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddAuthPolicyRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string AddAuthPolicyRequest::getRegion() const { + return region_; +} + +void AddAuthPolicyRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/AddAuthPolicyResult.cc b/mse/src/model/AddAuthPolicyResult.cc new file mode 100644 index 000000000..026e918f7 --- /dev/null +++ b/mse/src/model/AddAuthPolicyResult.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; + +AddAuthPolicyResult::AddAuthPolicyResult() : + ServiceResult() +{} + +AddAuthPolicyResult::AddAuthPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddAuthPolicyResult::~AddAuthPolicyResult() +{} + +void AddAuthPolicyResult::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 AddAuthPolicyResult::getMessage()const +{ + return message_; +} + +int AddAuthPolicyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AddAuthPolicyResult::getData()const +{ + return data_; +} + +int AddAuthPolicyResult::getCode()const +{ + return code_; +} + +bool AddAuthPolicyResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/AddGatewayAuthConsumerRequest.cc b/mse/src/model/AddGatewayAuthConsumerRequest.cc new file mode 100644 index 000000000..8e6412491 --- /dev/null +++ b/mse/src/model/AddGatewayAuthConsumerRequest.cc @@ -0,0 +1,153 @@ +/* + * 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::AddGatewayAuthConsumerRequest; + +AddGatewayAuthConsumerRequest::AddGatewayAuthConsumerRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddGatewayAuthConsumer") { + setMethod(HttpRequest::Method::Post); +} + +AddGatewayAuthConsumerRequest::~AddGatewayAuthConsumerRequest() {} + +std::string AddGatewayAuthConsumerRequest::getMseSessionId() const { + return mseSessionId_; +} + +void AddGatewayAuthConsumerRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string AddGatewayAuthConsumerRequest::getType() const { + return type_; +} + +void AddGatewayAuthConsumerRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string AddGatewayAuthConsumerRequest::getKeyName() const { + return keyName_; +} + +void AddGatewayAuthConsumerRequest::setKeyName(const std::string &keyName) { + keyName_ = keyName; + setParameter(std::string("KeyName"), keyName); +} + +std::string AddGatewayAuthConsumerRequest::getTokenPrefix() const { + return tokenPrefix_; +} + +void AddGatewayAuthConsumerRequest::setTokenPrefix(const std::string &tokenPrefix) { + tokenPrefix_ = tokenPrefix; + setParameter(std::string("TokenPrefix"), tokenPrefix); +} + +std::string AddGatewayAuthConsumerRequest::getName() const { + return name_; +} + +void AddGatewayAuthConsumerRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string AddGatewayAuthConsumerRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void AddGatewayAuthConsumerRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string AddGatewayAuthConsumerRequest::getJwks() const { + return jwks_; +} + +void AddGatewayAuthConsumerRequest::setJwks(const std::string &jwks) { + jwks_ = jwks; + setParameter(std::string("Jwks"), jwks); +} + +std::string AddGatewayAuthConsumerRequest::getDescription() const { + return description_; +} + +void AddGatewayAuthConsumerRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string AddGatewayAuthConsumerRequest::getTokenPosition() const { + return tokenPosition_; +} + +void AddGatewayAuthConsumerRequest::setTokenPosition(const std::string &tokenPosition) { + tokenPosition_ = tokenPosition; + setParameter(std::string("TokenPosition"), tokenPosition); +} + +std::string AddGatewayAuthConsumerRequest::getEncodeType() const { + return encodeType_; +} + +void AddGatewayAuthConsumerRequest::setEncodeType(const std::string &encodeType) { + encodeType_ = encodeType; + setParameter(std::string("EncodeType"), encodeType); +} + +std::string AddGatewayAuthConsumerRequest::getKeyValue() const { + return keyValue_; +} + +void AddGatewayAuthConsumerRequest::setKeyValue(const std::string &keyValue) { + keyValue_ = keyValue; + setParameter(std::string("KeyValue"), keyValue); +} + +bool AddGatewayAuthConsumerRequest::getTokenPass() const { + return tokenPass_; +} + +void AddGatewayAuthConsumerRequest::setTokenPass(bool tokenPass) { + tokenPass_ = tokenPass; + setParameter(std::string("TokenPass"), tokenPass ? "true" : "false"); +} + +std::string AddGatewayAuthConsumerRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddGatewayAuthConsumerRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string AddGatewayAuthConsumerRequest::getTokenName() const { + return tokenName_; +} + +void AddGatewayAuthConsumerRequest::setTokenName(const std::string &tokenName) { + tokenName_ = tokenName; + setParameter(std::string("TokenName"), tokenName); +} + diff --git a/mse/src/model/AddGatewayAuthConsumerResult.cc b/mse/src/model/AddGatewayAuthConsumerResult.cc new file mode 100644 index 000000000..b344317f0 --- /dev/null +++ b/mse/src/model/AddGatewayAuthConsumerResult.cc @@ -0,0 +1,100 @@ +/* + * 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; + +AddGatewayAuthConsumerResult::AddGatewayAuthConsumerResult() : + ServiceResult() +{} + +AddGatewayAuthConsumerResult::AddGatewayAuthConsumerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddGatewayAuthConsumerResult::~AddGatewayAuthConsumerResult() +{} + +void AddGatewayAuthConsumerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string AddGatewayAuthConsumerResult::getMessage()const +{ + return message_; +} + +int AddGatewayAuthConsumerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AddGatewayAuthConsumerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +long AddGatewayAuthConsumerResult::getData()const +{ + return data_; +} + +std::string AddGatewayAuthConsumerResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddGatewayAuthConsumerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int AddGatewayAuthConsumerResult::getCode()const +{ + return code_; +} + +bool AddGatewayAuthConsumerResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/AddGatewayRequest.cc b/mse/src/model/AddGatewayRequest.cc index fb15efc15..4114765d3 100644 --- a/mse/src/model/AddGatewayRequest.cc +++ b/mse/src/model/AddGatewayRequest.cc @@ -52,15 +52,6 @@ void AddGatewayRequest::setEnableXtrace(bool enableXtrace) { setParameter(std::string("EnableXtrace"), enableXtrace ? "true" : "false"); } -std::string AddGatewayRequest::getXtraceRatio() const { - return xtraceRatio_; -} - -void AddGatewayRequest::setXtraceRatio(const std::string &xtraceRatio) { - xtraceRatio_ = xtraceRatio; - setParameter(std::string("XtraceRatio"), xtraceRatio); -} - int AddGatewayRequest::getReplica() const { return replica_; } @@ -70,15 +61,6 @@ void AddGatewayRequest::setReplica(int replica) { setParameter(std::string("Replica"), std::to_string(replica)); } -std::string AddGatewayRequest::getVSwitchId2() const { - return vSwitchId2_; -} - -void AddGatewayRequest::setVSwitchId2(const std::string &vSwitchId2) { - vSwitchId2_ = vSwitchId2; - setParameter(std::string("VSwitchId2"), vSwitchId2); -} - bool AddGatewayRequest::getEnableHardwareAcceleration() const { return enableHardwareAcceleration_; } @@ -115,6 +97,15 @@ void AddGatewayRequest::setResourceGroupId(const std::string &resourceGroupId) { setParameter(std::string("ResourceGroupId"), resourceGroupId); } +std::string AddGatewayRequest::getRequestPars() const { + return requestPars_; +} + +void AddGatewayRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + bool AddGatewayRequest::getEnterpriseSecurityGroup() const { return enterpriseSecurityGroup_; } @@ -138,15 +129,6 @@ void AddGatewayRequest::setTag(const std::vector &tag) { } } -std::string AddGatewayRequest::getVpc() const { - return vpc_; -} - -void AddGatewayRequest::setVpc(const std::string &vpc) { - vpc_ = vpc; - setParameter(std::string("Vpc"), vpc); -} - std::string AddGatewayRequest::getVSwitchId() const { return vSwitchId_; } @@ -174,15 +156,6 @@ void AddGatewayRequest::setName(const std::string &name) { setParameter(std::string("Name"), name); } -std::string AddGatewayRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void AddGatewayRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - std::string AddGatewayRequest::getRegion() const { return region_; } @@ -192,3 +165,60 @@ void AddGatewayRequest::setRegion(const std::string ®ion) { setParameter(std::string("Region"), region); } +std::vector AddGatewayRequest::getZoneInfo() const { + return zoneInfo_; +} + +void AddGatewayRequest::setZoneInfo(const std::vector &zoneInfo) { + zoneInfo_ = zoneInfo; + for(int dep1 = 0; dep1 != zoneInfo.size(); dep1++) { + setParameter(std::string("ZoneInfo") + "." + std::to_string(dep1 + 1) + ".VSwitchId", zoneInfo[dep1].vSwitchId); + setParameter(std::string("ZoneInfo") + "." + std::to_string(dep1 + 1) + ".ZoneId", zoneInfo[dep1].zoneId); + } +} + +std::string AddGatewayRequest::getXtraceRatio() const { + return xtraceRatio_; +} + +void AddGatewayRequest::setXtraceRatio(const std::string &xtraceRatio) { + xtraceRatio_ = xtraceRatio; + setParameter(std::string("XtraceRatio"), xtraceRatio); +} + +std::string AddGatewayRequest::getVSwitchId2() const { + return vSwitchId2_; +} + +void AddGatewayRequest::setVSwitchId2(const std::string &vSwitchId2) { + vSwitchId2_ = vSwitchId2; + setParameter(std::string("VSwitchId2"), vSwitchId2); +} + +std::string AddGatewayRequest::getVpc() const { + return vpc_; +} + +void AddGatewayRequest::setVpc(const std::string &vpc) { + vpc_ = vpc; + setParameter(std::string("Vpc"), vpc); +} + +std::string AddGatewayRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddGatewayRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string AddGatewayRequest::getChargeType() const { + return chargeType_; +} + +void AddGatewayRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); +} + diff --git a/mse/src/model/AddGatewayRouteRequest.cc b/mse/src/model/AddGatewayRouteRequest.cc index 11ca82888..2c31e7b9f 100644 --- a/mse/src/model/AddGatewayRouteRequest.cc +++ b/mse/src/model/AddGatewayRouteRequest.cc @@ -34,24 +34,6 @@ void AddGatewayRouteRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } -std::string AddGatewayRouteRequest::getGatewayUniqueId() const { - return gatewayUniqueId_; -} - -void AddGatewayRouteRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { - gatewayUniqueId_ = gatewayUniqueId; - setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); -} - -std::string AddGatewayRouteRequest::getDestinationType() const { - return destinationType_; -} - -void AddGatewayRouteRequest::setDestinationType(const std::string &destinationType) { - destinationType_ = destinationType; - setParameter(std::string("DestinationType"), destinationType); -} - std::string AddGatewayRouteRequest::getDomainIdListJSON() const { return domainIdListJSON_; } @@ -70,6 +52,15 @@ void AddGatewayRouteRequest::setDomainId(long domainId) { setParameter(std::string("DomainId"), std::to_string(domainId)); } +std::string AddGatewayRouteRequest::getRouteType() const { + return routeType_; +} + +void AddGatewayRouteRequest::setRouteType(const std::string &routeType) { + routeType_ = routeType; + setParameter(std::string("RouteType"), routeType); +} + long AddGatewayRouteRequest::getGatewayId() const { return gatewayId_; } @@ -79,15 +70,6 @@ void AddGatewayRouteRequest::setGatewayId(long gatewayId) { setParameter(std::string("GatewayId"), std::to_string(gatewayId)); } -int AddGatewayRouteRequest::getRouteOrder() const { - return routeOrder_; -} - -void AddGatewayRouteRequest::setRouteOrder(int routeOrder) { - routeOrder_ = routeOrder; - setParameter(std::string("RouteOrder"), std::to_string(routeOrder)); -} - bool AddGatewayRouteRequest::getEnableWaf() const { return enableWaf_; } @@ -97,6 +79,113 @@ void AddGatewayRouteRequest::setEnableWaf(bool enableWaf) { setParameter(std::string("EnableWaf"), enableWaf ? "true" : "false"); } +AddGatewayRouteRequest::Predicates AddGatewayRouteRequest::getPredicates() const { + return predicates_; +} + +void AddGatewayRouteRequest::setPredicates(const AddGatewayRouteRequest::Predicates &predicates) { + predicates_ = predicates; + setParameter(std::string("Predicates") + ".PathPredicates.Path", predicates.pathPredicates.path); + setParameter(std::string("Predicates") + ".PathPredicates.IgnoreCase", predicates.pathPredicates.ignoreCase ? "true" : "false"); + setParameter(std::string("Predicates") + ".PathPredicates.Type", predicates.pathPredicates.type); + for(int dep1 = 0; dep1 != predicates.methodPredicates.size(); dep1++) { + setParameter(std::string("Predicates") + ".MethodPredicates." + std::to_string(dep1 + 1), predicates.methodPredicates[dep1]); + } + for(int dep1 = 0; dep1 != predicates.headerPredicates.size(); dep1++) { + setParameter(std::string("Predicates") + ".HeaderPredicates." + std::to_string(dep1 + 1) + ".Type", predicates.headerPredicates[dep1].type); + setParameter(std::string("Predicates") + ".HeaderPredicates." + std::to_string(dep1 + 1) + ".Value", predicates.headerPredicates[dep1].value); + setParameter(std::string("Predicates") + ".HeaderPredicates." + std::to_string(dep1 + 1) + ".Key", predicates.headerPredicates[dep1].key); + } + for(int dep1 = 0; dep1 != predicates.queryPredicates.size(); dep1++) { + setParameter(std::string("Predicates") + ".QueryPredicates." + std::to_string(dep1 + 1) + ".Type", predicates.queryPredicates[dep1].type); + setParameter(std::string("Predicates") + ".QueryPredicates." + std::to_string(dep1 + 1) + ".Value", predicates.queryPredicates[dep1].value); + setParameter(std::string("Predicates") + ".QueryPredicates." + std::to_string(dep1 + 1) + ".Key", predicates.queryPredicates[dep1].key); + } +} + +AddGatewayRouteRequest::DirectResponseJSON AddGatewayRouteRequest::getDirectResponseJSON() const { + return directResponseJSON_; +} + +void AddGatewayRouteRequest::setDirectResponseJSON(const AddGatewayRouteRequest::DirectResponseJSON &directResponseJSON) { + directResponseJSON_ = directResponseJSON; + setParameter(std::string("DirectResponseJSON") + ".Code", std::to_string(directResponseJSON.code)); + setParameter(std::string("DirectResponseJSON") + ".Body", directResponseJSON.body); +} + +std::string AddGatewayRouteRequest::getName() const { + return name_; +} + +void AddGatewayRouteRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::vector AddGatewayRouteRequest::getFallbackServices() const { + return fallbackServices_; +} + +void AddGatewayRouteRequest::setFallbackServices(const std::vector &fallbackServices) { + fallbackServices_ = fallbackServices; + for(int dep1 = 0; dep1 != fallbackServices.size(); dep1++) { + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".AgreementType", fallbackServices[dep1].agreementType); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Name", fallbackServices[dep1].name); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Namespace", fallbackServices[dep1]._namespace); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".SourceType", fallbackServices[dep1].sourceType); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".ServiceId", std::to_string(fallbackServices[dep1].serviceId)); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Percent", std::to_string(fallbackServices[dep1].percent)); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Version", fallbackServices[dep1].version); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".GroupName", fallbackServices[dep1].groupName); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".ServicePort", std::to_string(fallbackServices[dep1].servicePort)); + } +} + +bool AddGatewayRouteRequest::getFallback() const { + return fallback_; +} + +void AddGatewayRouteRequest::setFallback(bool fallback) { + fallback_ = fallback; + setParameter(std::string("Fallback"), fallback ? "true" : "false"); +} + +std::string AddGatewayRouteRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void AddGatewayRouteRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string AddGatewayRouteRequest::getDestinationType() const { + return destinationType_; +} + +void AddGatewayRouteRequest::setDestinationType(const std::string &destinationType) { + destinationType_ = destinationType; + setParameter(std::string("DestinationType"), destinationType); +} + +std::string AddGatewayRouteRequest::getPolicies() const { + return policies_; +} + +void AddGatewayRouteRequest::setPolicies(const std::string &policies) { + policies_ = policies; + setParameter(std::string("Policies"), policies); +} + +int AddGatewayRouteRequest::getRouteOrder() const { + return routeOrder_; +} + +void AddGatewayRouteRequest::setRouteOrder(int routeOrder) { + routeOrder_ = routeOrder; + setParameter(std::string("RouteOrder"), std::to_string(routeOrder)); +} + std::vector AddGatewayRouteRequest::getServices() const { return services_; } @@ -133,30 +222,6 @@ void AddGatewayRouteRequest::setServices(const std::vector AddGatewayRouteRequest::getFallbackServices() const { - return fallbackServices_; -} - -void AddGatewayRouteRequest::setFallbackServices(const std::vector &fallbackServices) { - fallbackServices_ = fallbackServices; - for(int dep1 = 0; dep1 != fallbackServices.size(); dep1++) { - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".AgreementType", fallbackServices[dep1].agreementType); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Name", fallbackServices[dep1].name); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Namespace", fallbackServices[dep1]._namespace); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".SourceType", fallbackServices[dep1].sourceType); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".ServiceId", std::to_string(fallbackServices[dep1].serviceId)); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Percent", std::to_string(fallbackServices[dep1].percent)); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Version", fallbackServices[dep1].version); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".GroupName", fallbackServices[dep1].groupName); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".ServicePort", std::to_string(fallbackServices[dep1].servicePort)); - } -} - -bool AddGatewayRouteRequest::getFallback() const { - return fallback_; -} - -void AddGatewayRouteRequest::setFallback(bool fallback) { - fallback_ = fallback; - setParameter(std::string("Fallback"), fallback ? "true" : "false"); -} - diff --git a/mse/src/model/AddGatewayRouteResult.cc b/mse/src/model/AddGatewayRouteResult.cc index a8da3520d..446bb4b97 100644 --- a/mse/src/model/AddGatewayRouteResult.cc +++ b/mse/src/model/AddGatewayRouteResult.cc @@ -49,6 +49,8 @@ void AddGatewayRouteResult::parse(const std::string &payload) success_ = value["Success"].asString() == "true"; if(!value["Data"].isNull()) data_ = std::stol(value["Data"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } @@ -67,6 +69,11 @@ long AddGatewayRouteResult::getData()const return data_; } +std::string AddGatewayRouteResult::getErrorCode()const +{ + return errorCode_; +} + int AddGatewayRouteResult::getCode()const { return code_; diff --git a/mse/src/model/AddGatewaySlbRequest.cc b/mse/src/model/AddGatewaySlbRequest.cc index 15534ed89..9910ca74c 100644 --- a/mse/src/model/AddGatewaySlbRequest.cc +++ b/mse/src/model/AddGatewaySlbRequest.cc @@ -88,6 +88,20 @@ void AddGatewaySlbRequest::setVServerGroupId(const std::string &vServerGroupId) setParameter(std::string("VServerGroupId"), vServerGroupId); } +std::vector AddGatewaySlbRequest::getVServiceList() const { + return vServiceList_; +} + +void AddGatewaySlbRequest::setVServiceList(const std::vector &vServiceList) { + vServiceList_ = vServiceList; + for(int dep1 = 0; dep1 != vServiceList.size(); dep1++) { + setParameter(std::string("VServiceList") + "." + std::to_string(dep1 + 1) + ".VServerGroupId", vServiceList[dep1].vServerGroupId); + setParameter(std::string("VServiceList") + "." + std::to_string(dep1 + 1) + ".Protocol", vServiceList[dep1].protocol); + setParameter(std::string("VServiceList") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(vServiceList[dep1].port)); + setParameter(std::string("VServiceList") + "." + std::to_string(dep1 + 1) + ".VServerGroupName", vServiceList[dep1].vServerGroupName); + } +} + std::string AddGatewaySlbRequest::getHttpsVServerGroupId() const { return httpsVServerGroupId_; } diff --git a/mse/src/model/AddMockRuleRequest.cc b/mse/src/model/AddMockRuleRequest.cc index 0012ef319..2e6bcb044 100644 --- a/mse/src/model/AddMockRuleRequest.cc +++ b/mse/src/model/AddMockRuleRequest.cc @@ -43,15 +43,6 @@ void AddMockRuleRequest::setExtraJson(const std::string &extraJson) { setParameter(std::string("ExtraJson"), extraJson); } -std::string AddMockRuleRequest::getProviderAppId() const { - return providerAppId_; -} - -void AddMockRuleRequest::setProviderAppId(const std::string &providerAppId) { - providerAppId_ = providerAppId; - setParameter(std::string("ProviderAppId"), providerAppId); -} - std::string AddMockRuleRequest::getSource() const { return source_; } @@ -79,6 +70,33 @@ void AddMockRuleRequest::setScMockItems(const std::string &scMockItems) { setParameter(std::string("ScMockItems"), scMockItems); } +std::string AddMockRuleRequest::getName() const { + return name_; +} + +void AddMockRuleRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string AddMockRuleRequest::getRegion() const { + return region_; +} + +void AddMockRuleRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + +std::string AddMockRuleRequest::getProviderAppId() const { + return providerAppId_; +} + +void AddMockRuleRequest::setProviderAppId(const std::string &providerAppId) { + providerAppId_ = providerAppId; + setParameter(std::string("ProviderAppId"), providerAppId); +} + std::string AddMockRuleRequest::getProviderAppName() const { return providerAppName_; } @@ -106,15 +124,6 @@ void AddMockRuleRequest::setDubboMockItems(const std::string &dubboMockItems) { setParameter(std::string("DubboMockItems"), dubboMockItems); } -std::string AddMockRuleRequest::getName() const { - return name_; -} - -void AddMockRuleRequest::setName(const std::string &name) { - name_ = name; - setParameter(std::string("Name"), name); -} - std::string AddMockRuleRequest::getAcceptLanguage() const { return acceptLanguage_; } @@ -133,12 +142,3 @@ void AddMockRuleRequest::setMockType(long mockType) { setParameter(std::string("MockType"), std::to_string(mockType)); } -std::string AddMockRuleRequest::getRegion() const { - return region_; -} - -void AddMockRuleRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - diff --git a/mse/src/model/ApplyTagPoliciesRequest.cc b/mse/src/model/ApplyTagPoliciesRequest.cc index 040072952..d43886447 100644 --- a/mse/src/model/ApplyTagPoliciesRequest.cc +++ b/mse/src/model/ApplyTagPoliciesRequest.cc @@ -52,6 +52,15 @@ void ApplyTagPoliciesRequest::setSource(const std::string &source) { setParameter(std::string("Source"), source); } +std::string ApplyTagPoliciesRequest::getAppName() const { + return appName_; +} + +void ApplyTagPoliciesRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + std::string ApplyTagPoliciesRequest::getNamespaceId() const { return namespaceId_; } @@ -79,6 +88,15 @@ void ApplyTagPoliciesRequest::setAppId(const std::string &appId) { setParameter(std::string("AppId"), appId); } +std::string ApplyTagPoliciesRequest::get_Namespace() const { + return _namespace_; +} + +void ApplyTagPoliciesRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + std::string ApplyTagPoliciesRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/CloneNacosConfigRequest.cc b/mse/src/model/CloneNacosConfigRequest.cc index 8f3b9fe5e..666ca0345 100644 --- a/mse/src/model/CloneNacosConfigRequest.cc +++ b/mse/src/model/CloneNacosConfigRequest.cc @@ -43,6 +43,24 @@ void CloneNacosConfigRequest::setTargetNamespaceId(const std::string &targetName setParameter(std::string("TargetNamespaceId"), targetNamespaceId); } +std::string CloneNacosConfigRequest::getOriginNamespaceId() const { + return originNamespaceId_; +} + +void CloneNacosConfigRequest::setOriginNamespaceId(const std::string &originNamespaceId) { + originNamespaceId_ = originNamespaceId; + setParameter(std::string("OriginNamespaceId"), originNamespaceId); +} + +std::string CloneNacosConfigRequest::getPolicy() const { + return policy_; +} + +void CloneNacosConfigRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); +} + std::string CloneNacosConfigRequest::getInstanceId() const { return instanceId_; } @@ -70,21 +88,3 @@ void CloneNacosConfigRequest::setIds(const std::string &ids) { setParameter(std::string("Ids"), ids); } -std::string CloneNacosConfigRequest::getOriginNamespaceId() const { - return originNamespaceId_; -} - -void CloneNacosConfigRequest::setOriginNamespaceId(const std::string &originNamespaceId) { - originNamespaceId_ = originNamespaceId; - setParameter(std::string("OriginNamespaceId"), originNamespaceId); -} - -std::string CloneNacosConfigRequest::getPolicy() const { - return policy_; -} - -void CloneNacosConfigRequest::setPolicy(const std::string &policy) { - policy_ = policy; - setParameter(std::string("Policy"), policy); -} - diff --git a/mse/src/model/CreateCircuitBreakerRuleRequest.cc b/mse/src/model/CreateCircuitBreakerRuleRequest.cc new file mode 100644 index 000000000..16c3614b9 --- /dev/null +++ b/mse/src/model/CreateCircuitBreakerRuleRequest.cc @@ -0,0 +1,171 @@ +/* + * 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::CreateCircuitBreakerRuleRequest; + +CreateCircuitBreakerRuleRequest::CreateCircuitBreakerRuleRequest() + : RpcServiceRequest("mse", "2019-05-31", "CreateCircuitBreakerRule") { + setMethod(HttpRequest::Method::Post); +} + +CreateCircuitBreakerRuleRequest::~CreateCircuitBreakerRuleRequest() {} + +std::string CreateCircuitBreakerRuleRequest::getMseSessionId() const { + return mseSessionId_; +} + +void CreateCircuitBreakerRuleRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +float CreateCircuitBreakerRuleRequest::getThreshold() const { + return threshold_; +} + +void CreateCircuitBreakerRuleRequest::setThreshold(float threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), std::to_string(threshold)); +} + +int CreateCircuitBreakerRuleRequest::getRetryTimeoutMs() const { + return retryTimeoutMs_; +} + +void CreateCircuitBreakerRuleRequest::setRetryTimeoutMs(int retryTimeoutMs) { + retryTimeoutMs_ = retryTimeoutMs; + setParameter(std::string("RetryTimeoutMs"), std::to_string(retryTimeoutMs)); +} + +std::string CreateCircuitBreakerRuleRequest::getAppName() const { + return appName_; +} + +void CreateCircuitBreakerRuleRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +bool CreateCircuitBreakerRuleRequest::getEnable() const { + return enable_; +} + +void CreateCircuitBreakerRuleRequest::setEnable(bool enable) { + enable_ = enable; + setParameter(std::string("Enable"), enable ? "true" : "false"); +} + +int CreateCircuitBreakerRuleRequest::getMinRequestAmount() const { + return minRequestAmount_; +} + +void CreateCircuitBreakerRuleRequest::setMinRequestAmount(int minRequestAmount) { + minRequestAmount_ = minRequestAmount; + setParameter(std::string("MinRequestAmount"), std::to_string(minRequestAmount)); +} + +std::string CreateCircuitBreakerRuleRequest::getResource() const { + return resource_; +} + +void CreateCircuitBreakerRuleRequest::setResource(const std::string &resource) { + resource_ = resource; + setParameter(std::string("Resource"), resource); +} + +int CreateCircuitBreakerRuleRequest::getMaxAllowedRtMs() const { + return maxAllowedRtMs_; +} + +void CreateCircuitBreakerRuleRequest::setMaxAllowedRtMs(int maxAllowedRtMs) { + maxAllowedRtMs_ = maxAllowedRtMs; + setParameter(std::string("MaxAllowedRtMs"), std::to_string(maxAllowedRtMs)); +} + +int CreateCircuitBreakerRuleRequest::getHalfOpenBaseAmountPerStep() const { + return halfOpenBaseAmountPerStep_; +} + +void CreateCircuitBreakerRuleRequest::setHalfOpenBaseAmountPerStep(int halfOpenBaseAmountPerStep) { + halfOpenBaseAmountPerStep_ = halfOpenBaseAmountPerStep; + setParameter(std::string("HalfOpenBaseAmountPerStep"), std::to_string(halfOpenBaseAmountPerStep)); +} + +std::string CreateCircuitBreakerRuleRequest::getRegionId() const { + return regionId_; +} + +void CreateCircuitBreakerRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int CreateCircuitBreakerRuleRequest::getStatIntervalMs() const { + return statIntervalMs_; +} + +void CreateCircuitBreakerRuleRequest::setStatIntervalMs(int statIntervalMs) { + statIntervalMs_ = statIntervalMs; + setParameter(std::string("StatIntervalMs"), std::to_string(statIntervalMs)); +} + +std::string CreateCircuitBreakerRuleRequest::getAppId() const { + return appId_; +} + +void CreateCircuitBreakerRuleRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string CreateCircuitBreakerRuleRequest::get_Namespace() const { + return _namespace_; +} + +void CreateCircuitBreakerRuleRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +int CreateCircuitBreakerRuleRequest::getHalfOpenRecoveryStepNum() const { + return halfOpenRecoveryStepNum_; +} + +void CreateCircuitBreakerRuleRequest::setHalfOpenRecoveryStepNum(int halfOpenRecoveryStepNum) { + halfOpenRecoveryStepNum_ = halfOpenRecoveryStepNum; + setParameter(std::string("HalfOpenRecoveryStepNum"), std::to_string(halfOpenRecoveryStepNum)); +} + +std::string CreateCircuitBreakerRuleRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void CreateCircuitBreakerRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +int CreateCircuitBreakerRuleRequest::getStrategy() const { + return strategy_; +} + +void CreateCircuitBreakerRuleRequest::setStrategy(int strategy) { + strategy_ = strategy; + setParameter(std::string("Strategy"), std::to_string(strategy)); +} + diff --git a/mse/src/model/CreateCircuitBreakerRuleResult.cc b/mse/src/model/CreateCircuitBreakerRuleResult.cc new file mode 100644 index 000000000..a8f94c3ff --- /dev/null +++ b/mse/src/model/CreateCircuitBreakerRuleResult.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; + +CreateCircuitBreakerRuleResult::CreateCircuitBreakerRuleResult() : + ServiceResult() +{} + +CreateCircuitBreakerRuleResult::CreateCircuitBreakerRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCircuitBreakerRuleResult::~CreateCircuitBreakerRuleResult() +{} + +void CreateCircuitBreakerRuleResult::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["Namespace"].isNull()) + data_._namespace = dataNode["Namespace"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["Resource"].isNull()) + data_.resource = dataNode["Resource"].asString(); + if(!dataNode["StatIntervalMs"].isNull()) + data_.statIntervalMs = std::stoi(dataNode["StatIntervalMs"].asString()); + if(!dataNode["Threshold"].isNull()) + data_.threshold = std::stof(dataNode["Threshold"].asString()); + if(!dataNode["Enable"].isNull()) + data_.enable = dataNode["Enable"].asString() == "true"; + if(!dataNode["Strategy"].isNull()) + data_.strategy = std::stoi(dataNode["Strategy"].asString()); + if(!dataNode["RetryTimeoutMs"].isNull()) + data_.retryTimeoutMs = std::stoi(dataNode["RetryTimeoutMs"].asString()); + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["RegionId"].isNull()) + data_.regionId = dataNode["RegionId"].asString(); + if(!dataNode["MaxAllowedRtMs"].isNull()) + data_.maxAllowedRtMs = std::stoi(dataNode["MaxAllowedRtMs"].asString()); + if(!dataNode["MinRequestAmount"].isNull()) + data_.minRequestAmount = std::stoi(dataNode["MinRequestAmount"].asString()); + if(!dataNode["HalfOpenBaseAmountPerStep"].isNull()) + data_.halfOpenBaseAmountPerStep = std::stoi(dataNode["HalfOpenBaseAmountPerStep"].asString()); + if(!dataNode["HalfOpenRecoveryStepNum"].isNull()) + data_.halfOpenRecoveryStepNum = std::stoi(dataNode["HalfOpenRecoveryStepNum"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateCircuitBreakerRuleResult::getMessage()const +{ + return message_; +} + +CreateCircuitBreakerRuleResult::Data CreateCircuitBreakerRuleResult::getData()const +{ + return data_; +} + +std::string CreateCircuitBreakerRuleResult::getCode()const +{ + return code_; +} + +bool CreateCircuitBreakerRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/CreateClusterRequest.cc b/mse/src/model/CreateClusterRequest.cc index 3411463a1..aae7e1c95 100644 --- a/mse/src/model/CreateClusterRequest.cc +++ b/mse/src/model/CreateClusterRequest.cc @@ -43,24 +43,6 @@ void CreateClusterRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } -std::string CreateClusterRequest::getPubSlbSpecification() const { - return pubSlbSpecification_; -} - -void CreateClusterRequest::setPubSlbSpecification(const std::string &pubSlbSpecification) { - pubSlbSpecification_ = pubSlbSpecification; - setParameter(std::string("PubSlbSpecification"), pubSlbSpecification); -} - -std::string CreateClusterRequest::getPrivateSlbSpecification() const { - return privateSlbSpecification_; -} - -void CreateClusterRequest::setPrivateSlbSpecification(const std::string &privateSlbSpecification) { - privateSlbSpecification_ = privateSlbSpecification; - setParameter(std::string("PrivateSlbSpecification"), privateSlbSpecification); -} - std::string CreateClusterRequest::getResourceGroupId() const { return resourceGroupId_; } @@ -70,15 +52,6 @@ void CreateClusterRequest::setResourceGroupId(const std::string &resourceGroupId setParameter(std::string("ResourceGroupId"), resourceGroupId); } -int CreateClusterRequest::getInstanceCount() const { - return instanceCount_; -} - -void CreateClusterRequest::setInstanceCount(int instanceCount) { - instanceCount_ = instanceCount; - setParameter(std::string("InstanceCount"), std::to_string(instanceCount)); -} - std::string CreateClusterRequest::getRequestPars() const { return requestPars_; } @@ -102,6 +75,87 @@ void CreateClusterRequest::setTag(const std::vector & } } +std::string CreateClusterRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateClusterRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateClusterRequest::getClusterType() const { + return clusterType_; +} + +void CreateClusterRequest::setClusterType(const std::string &clusterType) { + clusterType_ = clusterType; + setParameter(std::string("ClusterType"), clusterType); +} + +std::string CreateClusterRequest::getInstanceName() const { + return instanceName_; +} + +void CreateClusterRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); +} + +std::string CreateClusterRequest::getNetType() const { + return netType_; +} + +void CreateClusterRequest::setNetType(const std::string &netType) { + netType_ = netType; + setParameter(std::string("NetType"), netType); +} + +std::string CreateClusterRequest::getMseVersion() const { + return mseVersion_; +} + +void CreateClusterRequest::setMseVersion(const std::string &mseVersion) { + mseVersion_ = mseVersion; + setParameter(std::string("MseVersion"), mseVersion); +} + +std::string CreateClusterRequest::getRegion() const { + return region_; +} + +void CreateClusterRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + +std::string CreateClusterRequest::getPubSlbSpecification() const { + return pubSlbSpecification_; +} + +void CreateClusterRequest::setPubSlbSpecification(const std::string &pubSlbSpecification) { + pubSlbSpecification_ = pubSlbSpecification; + setParameter(std::string("PubSlbSpecification"), pubSlbSpecification); +} + +std::string CreateClusterRequest::getPrivateSlbSpecification() const { + return privateSlbSpecification_; +} + +void CreateClusterRequest::setPrivateSlbSpecification(const std::string &privateSlbSpecification) { + privateSlbSpecification_ = privateSlbSpecification; + setParameter(std::string("PrivateSlbSpecification"), privateSlbSpecification); +} + +int CreateClusterRequest::getInstanceCount() const { + return instanceCount_; +} + +void CreateClusterRequest::setInstanceCount(int instanceCount) { + instanceCount_ = instanceCount; + setParameter(std::string("InstanceCount"), std::to_string(instanceCount)); +} + std::string CreateClusterRequest::getConnectionType() const { return connectionType_; } @@ -138,33 +192,6 @@ void CreateClusterRequest::setDiskType(const std::string &diskType) { setParameter(std::string("DiskType"), diskType); } -std::string CreateClusterRequest::getVSwitchId() const { - return vSwitchId_; -} - -void CreateClusterRequest::setVSwitchId(const std::string &vSwitchId) { - vSwitchId_ = vSwitchId; - setParameter(std::string("VSwitchId"), vSwitchId); -} - -std::string CreateClusterRequest::getClusterType() const { - return clusterType_; -} - -void CreateClusterRequest::setClusterType(const std::string &clusterType) { - clusterType_ = clusterType; - setParameter(std::string("ClusterType"), clusterType); -} - -std::string CreateClusterRequest::getInstanceName() const { - return instanceName_; -} - -void CreateClusterRequest::setInstanceName(const std::string &instanceName) { - instanceName_ = instanceName; - setParameter(std::string("InstanceName"), instanceName); -} - std::string CreateClusterRequest::getPubNetworkFlow() const { return pubNetworkFlow_; } @@ -183,24 +210,6 @@ void CreateClusterRequest::setVpcId(const std::string &vpcId) { setParameter(std::string("VpcId"), vpcId); } -std::string CreateClusterRequest::getNetType() const { - return netType_; -} - -void CreateClusterRequest::setNetType(const std::string &netType) { - netType_ = netType; - setParameter(std::string("NetType"), netType); -} - -std::string CreateClusterRequest::getMseVersion() const { - return mseVersion_; -} - -void CreateClusterRequest::setMseVersion(const std::string &mseVersion) { - mseVersion_ = mseVersion; - setParameter(std::string("MseVersion"), mseVersion); -} - std::string CreateClusterRequest::getAcceptLanguage() const { return acceptLanguage_; } @@ -210,12 +219,12 @@ void CreateClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string CreateClusterRequest::getRegion() const { - return region_; +std::string CreateClusterRequest::getChargeType() const { + return chargeType_; } -void CreateClusterRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); +void CreateClusterRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); } diff --git a/mse/src/model/CreateEngineNamespaceRequest.cc b/mse/src/model/CreateEngineNamespaceRequest.cc index c794ddb5d..fdd608d4d 100644 --- a/mse/src/model/CreateEngineNamespaceRequest.cc +++ b/mse/src/model/CreateEngineNamespaceRequest.cc @@ -34,6 +34,24 @@ void CreateEngineNamespaceRequest::setMseSessionId(const std::string &mseSession setParameter(std::string("MseSessionId"), mseSessionId); } +int CreateEngineNamespaceRequest::getServiceCount() const { + return serviceCount_; +} + +void CreateEngineNamespaceRequest::setServiceCount(int serviceCount) { + serviceCount_ = serviceCount; + setParameter(std::string("ServiceCount"), std::to_string(serviceCount)); +} + +std::string CreateEngineNamespaceRequest::getId() const { + return id_; +} + +void CreateEngineNamespaceRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("Id"), id); +} + std::string CreateEngineNamespaceRequest::getClusterId() const { return clusterId_; } @@ -52,15 +70,6 @@ void CreateEngineNamespaceRequest::setInstanceId(const std::string &instanceId) setParameter(std::string("InstanceId"), instanceId); } -int CreateEngineNamespaceRequest::getServiceCount() const { - return serviceCount_; -} - -void CreateEngineNamespaceRequest::setServiceCount(int serviceCount) { - serviceCount_ = serviceCount; - setParameter(std::string("ServiceCount"), std::to_string(serviceCount)); -} - std::string CreateEngineNamespaceRequest::getName() const { return name_; } @@ -79,15 +88,6 @@ 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/CreateFlowRuleRequest.cc b/mse/src/model/CreateFlowRuleRequest.cc new file mode 100644 index 000000000..566d3dc95 --- /dev/null +++ b/mse/src/model/CreateFlowRuleRequest.cc @@ -0,0 +1,126 @@ +/* + * 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::CreateFlowRuleRequest; + +CreateFlowRuleRequest::CreateFlowRuleRequest() + : RpcServiceRequest("mse", "2019-05-31", "CreateFlowRule") { + setMethod(HttpRequest::Method::Post); +} + +CreateFlowRuleRequest::~CreateFlowRuleRequest() {} + +std::string CreateFlowRuleRequest::getMseSessionId() const { + return mseSessionId_; +} + +void CreateFlowRuleRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +int CreateFlowRuleRequest::getControlBehavior() const { + return controlBehavior_; +} + +void CreateFlowRuleRequest::setControlBehavior(int controlBehavior) { + controlBehavior_ = controlBehavior; + setParameter(std::string("ControlBehavior"), std::to_string(controlBehavior)); +} + +int CreateFlowRuleRequest::getThreshold() const { + return threshold_; +} + +void CreateFlowRuleRequest::setThreshold(int threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), std::to_string(threshold)); +} + +std::string CreateFlowRuleRequest::getAppName() const { + return appName_; +} + +void CreateFlowRuleRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string CreateFlowRuleRequest::getRegionId() const { + return regionId_; +} + +void CreateFlowRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool CreateFlowRuleRequest::getEnable() const { + return enable_; +} + +void CreateFlowRuleRequest::setEnable(bool enable) { + enable_ = enable; + setParameter(std::string("Enable"), enable ? "true" : "false"); +} + +std::string CreateFlowRuleRequest::getResource() const { + return resource_; +} + +void CreateFlowRuleRequest::setResource(const std::string &resource) { + resource_ = resource; + setParameter(std::string("Resource"), resource); +} + +std::string CreateFlowRuleRequest::getAppId() const { + return appId_; +} + +void CreateFlowRuleRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string CreateFlowRuleRequest::get_Namespace() const { + return _namespace_; +} + +void CreateFlowRuleRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string CreateFlowRuleRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void CreateFlowRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +int CreateFlowRuleRequest::getMaxQueueingTimeMs() const { + return maxQueueingTimeMs_; +} + +void CreateFlowRuleRequest::setMaxQueueingTimeMs(int maxQueueingTimeMs) { + maxQueueingTimeMs_ = maxQueueingTimeMs; + setParameter(std::string("MaxQueueingTimeMs"), std::to_string(maxQueueingTimeMs)); +} + diff --git a/mse/src/model/CreateFlowRuleResult.cc b/mse/src/model/CreateFlowRuleResult.cc new file mode 100644 index 000000000..f81642252 --- /dev/null +++ b/mse/src/model/CreateFlowRuleResult.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; + +CreateFlowRuleResult::CreateFlowRuleResult() : + ServiceResult() +{} + +CreateFlowRuleResult::CreateFlowRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFlowRuleResult::~CreateFlowRuleResult() +{} + +void CreateFlowRuleResult::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["Namespace"].isNull()) + data_._namespace = dataNode["Namespace"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["Resource"].isNull()) + data_.resource = dataNode["Resource"].asString(); + if(!dataNode["ControlBehavior"].isNull()) + data_.controlBehavior = std::stoi(dataNode["ControlBehavior"].asString()); + if(!dataNode["MaxQueueingTimeMs"].isNull()) + data_.maxQueueingTimeMs = std::stoi(dataNode["MaxQueueingTimeMs"].asString()); + if(!dataNode["Threshold"].isNull()) + data_.threshold = std::stof(dataNode["Threshold"].asString()); + if(!dataNode["Enable"].isNull()) + data_.enable = dataNode["Enable"].asString() == "true"; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["RegionId"].isNull()) + data_.regionId = dataNode["RegionId"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateFlowRuleResult::getMessage()const +{ + return message_; +} + +CreateFlowRuleResult::Data CreateFlowRuleResult::getData()const +{ + return data_; +} + +std::string CreateFlowRuleResult::getCode()const +{ + return code_; +} + +bool CreateFlowRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/CreateNacosInstanceRequest.cc b/mse/src/model/CreateNacosInstanceRequest.cc index 2c5cc5c95..64d2bdb57 100644 --- a/mse/src/model/CreateNacosInstanceRequest.cc +++ b/mse/src/model/CreateNacosInstanceRequest.cc @@ -61,15 +61,6 @@ void CreateNacosInstanceRequest::setEphemeral(bool ephemeral) { setParameter(std::string("Ephemeral"), ephemeral ? "true" : "false"); } -bool CreateNacosInstanceRequest::getEnabled() const { - return enabled_; -} - -void CreateNacosInstanceRequest::setEnabled(bool enabled) { - enabled_ = enabled; - setParameter(std::string("Enabled"), enabled ? "true" : "false"); -} - std::string CreateNacosInstanceRequest::getNamespaceId() const { return namespaceId_; } @@ -79,15 +70,6 @@ void CreateNacosInstanceRequest::setNamespaceId(const std::string &namespaceId) setParameter(std::string("NamespaceId"), namespaceId); } -std::string CreateNacosInstanceRequest::getServiceName() const { - return serviceName_; -} - -void CreateNacosInstanceRequest::setServiceName(const std::string &serviceName) { - serviceName_ = serviceName; - setParameter(std::string("ServiceName"), serviceName); -} - std::string CreateNacosInstanceRequest::getIp() const { return ip_; } @@ -133,6 +115,24 @@ void CreateNacosInstanceRequest::setPort(int port) { setParameter(std::string("Port"), std::to_string(port)); } +bool CreateNacosInstanceRequest::getEnabled() const { + return enabled_; +} + +void CreateNacosInstanceRequest::setEnabled(bool enabled) { + enabled_ = enabled; + setParameter(std::string("Enabled"), enabled ? "true" : "false"); +} + +std::string CreateNacosInstanceRequest::getServiceName() const { + return serviceName_; +} + +void CreateNacosInstanceRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + std::string CreateNacosInstanceRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/CreateNacosServiceRequest.cc b/mse/src/model/CreateNacosServiceRequest.cc index 424331a0e..7b0d5aeb2 100644 --- a/mse/src/model/CreateNacosServiceRequest.cc +++ b/mse/src/model/CreateNacosServiceRequest.cc @@ -43,6 +43,24 @@ void CreateNacosServiceRequest::setEphemeral(bool ephemeral) { setParameter(std::string("Ephemeral"), ephemeral ? "true" : "false"); } +std::string CreateNacosServiceRequest::getNamespaceId() const { + return namespaceId_; +} + +void CreateNacosServiceRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string CreateNacosServiceRequest::getServiceName() const { + return serviceName_; +} + +void CreateNacosServiceRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + std::string CreateNacosServiceRequest::getClusterId() const { return clusterId_; } @@ -70,15 +88,6 @@ void CreateNacosServiceRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } -std::string CreateNacosServiceRequest::getNamespaceId() const { - return namespaceId_; -} - -void CreateNacosServiceRequest::setNamespaceId(const std::string &namespaceId) { - namespaceId_ = namespaceId; - setParameter(std::string("NamespaceId"), namespaceId); -} - std::string CreateNacosServiceRequest::getAcceptLanguage() const { return acceptLanguage_; } @@ -88,15 +97,6 @@ void CreateNacosServiceRequest::setAcceptLanguage(const std::string &acceptLangu setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string CreateNacosServiceRequest::getServiceName() const { - return serviceName_; -} - -void CreateNacosServiceRequest::setServiceName(const std::string &serviceName) { - serviceName_ = serviceName; - setParameter(std::string("ServiceName"), serviceName); -} - std::string CreateNacosServiceRequest::getProtectThreshold() const { return protectThreshold_; } diff --git a/mse/src/model/CreateOrUpdateSwimmingLaneGroupRequest.cc b/mse/src/model/CreateOrUpdateSwimmingLaneGroupRequest.cc index 5dc763c16..d3b4cd33e 100644 --- a/mse/src/model/CreateOrUpdateSwimmingLaneGroupRequest.cc +++ b/mse/src/model/CreateOrUpdateSwimmingLaneGroupRequest.cc @@ -34,42 +34,6 @@ void CreateOrUpdateSwimmingLaneGroupRequest::setMseSessionId(const std::string & setParameter(std::string("MseSessionId"), mseSessionId); } -std::string CreateOrUpdateSwimmingLaneGroupRequest::getSource() const { - return source_; -} - -void CreateOrUpdateSwimmingLaneGroupRequest::setSource(const std::string &source) { - source_ = source; - setParameter(std::string("Source"), source); -} - -std::string CreateOrUpdateSwimmingLaneGroupRequest::getGmtModified() const { - return gmtModified_; -} - -void CreateOrUpdateSwimmingLaneGroupRequest::setGmtModified(const std::string &gmtModified) { - gmtModified_ = gmtModified; - setParameter(std::string("GmtModified"), gmtModified); -} - -std::string CreateOrUpdateSwimmingLaneGroupRequest::getUserId() const { - return userId_; -} - -void CreateOrUpdateSwimmingLaneGroupRequest::setUserId(const std::string &userId) { - userId_ = userId; - setParameter(std::string("UserId"), userId); -} - -std::string CreateOrUpdateSwimmingLaneGroupRequest::getLicenseKey() const { - return licenseKey_; -} - -void CreateOrUpdateSwimmingLaneGroupRequest::setLicenseKey(const std::string &licenseKey) { - licenseKey_ = licenseKey; - setParameter(std::string("LicenseKey"), licenseKey); -} - std::string CreateOrUpdateSwimmingLaneGroupRequest::getAppIds() const { return appIds_; } @@ -79,15 +43,6 @@ void CreateOrUpdateSwimmingLaneGroupRequest::setAppIds(const std::string &appIds setParameter(std::string("AppIds"), appIds); } -bool CreateOrUpdateSwimmingLaneGroupRequest::getMessageQueueGrayEnable() const { - return messageQueueGrayEnable_; -} - -void CreateOrUpdateSwimmingLaneGroupRequest::setMessageQueueGrayEnable(bool messageQueueGrayEnable) { - messageQueueGrayEnable_ = messageQueueGrayEnable; - setParameter(std::string("MessageQueueGrayEnable"), messageQueueGrayEnable ? "true" : "false"); -} - bool CreateOrUpdateSwimmingLaneGroupRequest::getDbGrayEnable() const { return dbGrayEnable_; } @@ -106,15 +61,6 @@ void CreateOrUpdateSwimmingLaneGroupRequest::setEnable(bool enable) { setParameter(std::string("Enable"), enable ? "true" : "false"); } -std::string CreateOrUpdateSwimmingLaneGroupRequest::getEntryApp() const { - return entryApp_; -} - -void CreateOrUpdateSwimmingLaneGroupRequest::setEntryApp(const std::string &entryApp) { - entryApp_ = entryApp; - setParameter(std::string("EntryApp"), entryApp); -} - long CreateOrUpdateSwimmingLaneGroupRequest::getId() const { return id_; } @@ -124,15 +70,6 @@ void CreateOrUpdateSwimmingLaneGroupRequest::setId(long id) { setParameter(std::string("Id"), std::to_string(id)); } -std::string CreateOrUpdateSwimmingLaneGroupRequest::getGmtCreate() const { - return gmtCreate_; -} - -void CreateOrUpdateSwimmingLaneGroupRequest::setGmtCreate(const std::string &gmtCreate) { - gmtCreate_ = gmtCreate; - setParameter(std::string("GmtCreate"), gmtCreate); -} - std::string CreateOrUpdateSwimmingLaneGroupRequest::getName() const { return name_; } @@ -151,24 +88,6 @@ void CreateOrUpdateSwimmingLaneGroupRequest::setMessageQueueFilterSide(const std setParameter(std::string("MessageQueueFilterSide"), messageQueueFilterSide); } -std::string CreateOrUpdateSwimmingLaneGroupRequest::get_Namespace() const { - return _namespace_; -} - -void CreateOrUpdateSwimmingLaneGroupRequest::set_Namespace(const std::string &_namespace) { - _namespace_ = _namespace; - setParameter(std::string("Namespace"), _namespace); -} - -std::string CreateOrUpdateSwimmingLaneGroupRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void CreateOrUpdateSwimmingLaneGroupRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - std::string CreateOrUpdateSwimmingLaneGroupRequest::getRegion() const { return region_; } @@ -187,3 +106,48 @@ void CreateOrUpdateSwimmingLaneGroupRequest::setStatus(int status) { setParameter(std::string("Status"), std::to_string(status)); } +bool CreateOrUpdateSwimmingLaneGroupRequest::getMessageQueueGrayEnable() const { + return messageQueueGrayEnable_; +} + +void CreateOrUpdateSwimmingLaneGroupRequest::setMessageQueueGrayEnable(bool messageQueueGrayEnable) { + messageQueueGrayEnable_ = messageQueueGrayEnable; + setParameter(std::string("MessageQueueGrayEnable"), messageQueueGrayEnable ? "true" : "false"); +} + +std::string CreateOrUpdateSwimmingLaneGroupRequest::getEntryApp() const { + return entryApp_; +} + +void CreateOrUpdateSwimmingLaneGroupRequest::setEntryApp(const std::string &entryApp) { + entryApp_ = entryApp; + setParameter(std::string("EntryApp"), entryApp); +} + +bool CreateOrUpdateSwimmingLaneGroupRequest::getRecordCanaryDetail() const { + return recordCanaryDetail_; +} + +void CreateOrUpdateSwimmingLaneGroupRequest::setRecordCanaryDetail(bool recordCanaryDetail) { + recordCanaryDetail_ = recordCanaryDetail; + setParameter(std::string("RecordCanaryDetail"), recordCanaryDetail ? "true" : "false"); +} + +std::string CreateOrUpdateSwimmingLaneGroupRequest::get_Namespace() const { + return _namespace_; +} + +void CreateOrUpdateSwimmingLaneGroupRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string CreateOrUpdateSwimmingLaneGroupRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void CreateOrUpdateSwimmingLaneGroupRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/CreateOrUpdateSwimmingLaneGroupResult.cc b/mse/src/model/CreateOrUpdateSwimmingLaneGroupResult.cc index 0021ecd52..3a4ef0f0e 100644 --- a/mse/src/model/CreateOrUpdateSwimmingLaneGroupResult.cc +++ b/mse/src/model/CreateOrUpdateSwimmingLaneGroupResult.cc @@ -39,6 +39,90 @@ void CreateOrUpdateSwimmingLaneGroupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["name"].isNull()) + data_.name1 = dataNode["name"].asString(); + if(!dataNode["dbGrayEnable"].isNull()) + data_.dbGrayEnable = dataNode["dbGrayEnable"].asString(); + if(!dataNode["DbGrayEnable"].isNull()) + data_.dbGrayEnable2 = dataNode["DbGrayEnable"].asString(); + if(!dataNode["source"].isNull()) + data_.source = dataNode["source"].asString(); + if(!dataNode["Source"].isNull()) + data_.source3 = dataNode["Source"].asString(); + if(!dataNode["userId"].isNull()) + data_.userId = dataNode["userId"].asString(); + if(!dataNode["UserId"].isNull()) + data_.userId4 = dataNode["UserId"].asString(); + if(!dataNode["MessageQueueFilterSide"].isNull()) + data_.messageQueueFilterSide = dataNode["MessageQueueFilterSide"].asString(); + if(!dataNode["messageQueueFilterSide"].isNull()) + data_.messageQueueFilterSide5 = dataNode["messageQueueFilterSide"].asString(); + if(!dataNode["appIds"].isNull()) + data_.appIds = dataNode["appIds"].asString(); + if(!dataNode["AppIds"].isNull()) + data_.appIds6 = dataNode["AppIds"].asString(); + if(!dataNode["enable"].isNull()) + data_.enable = dataNode["enable"].asString(); + if(!dataNode["Enable"].isNull()) + data_.enable7 = dataNode["Enable"].asString(); + if(!dataNode["Namespace"].isNull()) + data_._namespace = dataNode["Namespace"].asString(); + if(!dataNode["namespace"].isNull()) + data_._namespace8 = dataNode["namespace"].asString(); + if(!dataNode["RecordCanaryDetail"].isNull()) + data_.recordCanaryDetail = dataNode["RecordCanaryDetail"].asString() == "true"; + if(!dataNode["id"].isNull()) + data_.id = std::stol(dataNode["id"].asString()); + if(!dataNode["Id"].isNull()) + data_.id9 = std::stol(dataNode["Id"].asString()); + if(!dataNode["entryApp"].isNull()) + data_.entryApp = dataNode["entryApp"].asString(); + if(!dataNode["EntryApp"].isNull()) + data_.entryApp10 = dataNode["EntryApp"].asString(); + if(!dataNode["region"].isNull()) + data_.region = dataNode["region"].asString(); + if(!dataNode["Region"].isNull()) + data_.region11 = dataNode["Region"].asString(); + if(!dataNode["MessageQueueGrayEnable"].isNull()) + data_.messageQueueGrayEnable = dataNode["MessageQueueGrayEnable"].asString() == "true"; + if(!dataNode["messageQueueGrayEnable"].isNull()) + data_.messageQueueGrayEnable12 = dataNode["messageQueueGrayEnable"].asString() == "true"; + if(!dataNode["status"].isNull()) + data_.status = std::stoi(dataNode["status"].asString()); + if(!dataNode["Status"].isNull()) + data_.status13 = std::stoi(dataNode["Status"].asString()); + auto allApplicationList = dataNode["applicationList"]["applicationList"]; + for (auto value : allApplicationList) + data_.applicationList.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } +std::string CreateOrUpdateSwimmingLaneGroupResult::getMessage()const +{ + return message_; +} + +CreateOrUpdateSwimmingLaneGroupResult::Data CreateOrUpdateSwimmingLaneGroupResult::getData()const +{ + return data_; +} + +std::string CreateOrUpdateSwimmingLaneGroupResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateOrUpdateSwimmingLaneGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/CreateOrUpdateSwimmingLaneRequest.cc b/mse/src/model/CreateOrUpdateSwimmingLaneRequest.cc index 73b72dfa3..6810ad89e 100644 --- a/mse/src/model/CreateOrUpdateSwimmingLaneRequest.cc +++ b/mse/src/model/CreateOrUpdateSwimmingLaneRequest.cc @@ -34,70 +34,6 @@ void CreateOrUpdateSwimmingLaneRequest::setMseSessionId(const std::string &mseSe setParameter(std::string("MseSessionId"), mseSessionId); } -std::string CreateOrUpdateSwimmingLaneRequest::getSource() const { - return source_; -} - -void CreateOrUpdateSwimmingLaneRequest::setSource(const std::string &source) { - source_ = source; - setParameter(std::string("Source"), source); -} - -std::string CreateOrUpdateSwimmingLaneRequest::getGmtModified() const { - return gmtModified_; -} - -void CreateOrUpdateSwimmingLaneRequest::setGmtModified(const std::string &gmtModified) { - gmtModified_ = gmtModified; - setParameter(std::string("GmtModified"), gmtModified); -} - -std::string CreateOrUpdateSwimmingLaneRequest::getUserId() const { - return userId_; -} - -void CreateOrUpdateSwimmingLaneRequest::setUserId(const std::string &userId) { - userId_ = userId; - setParameter(std::string("UserId"), userId); -} - -std::string CreateOrUpdateSwimmingLaneRequest::getLicenseKey() const { - return licenseKey_; -} - -void CreateOrUpdateSwimmingLaneRequest::setLicenseKey(const std::string &licenseKey) { - licenseKey_ = licenseKey; - setParameter(std::string("LicenseKey"), licenseKey); -} - -CreateOrUpdateSwimmingLaneRequest::GatewaySwimmingLaneRouteJson CreateOrUpdateSwimmingLaneRequest::getGatewaySwimmingLaneRouteJson() const { - return gatewaySwimmingLaneRouteJson_; -} - -void CreateOrUpdateSwimmingLaneRequest::setGatewaySwimmingLaneRouteJson(const CreateOrUpdateSwimmingLaneRequest::GatewaySwimmingLaneRouteJson &gatewaySwimmingLaneRouteJson) { - gatewaySwimmingLaneRouteJson_ = gatewaySwimmingLaneRouteJson; - setParameter(std::string("GatewaySwimmingLaneRouteJson") + ".GatewayUniqueId", gatewaySwimmingLaneRouteJson.gatewayUniqueId); - for(int dep1 = 0; dep1 != gatewaySwimmingLaneRouteJson.routeIdList.size(); dep1++) { - setParameter(std::string("GatewaySwimmingLaneRouteJson") + ".RouteIdList." + std::to_string(dep1 + 1), std::to_string(gatewaySwimmingLaneRouteJson.routeIdList[dep1])); - } - for(int dep1 = 0; dep1 != gatewaySwimmingLaneRouteJson.conditions.size(); dep1++) { - setParameter(std::string("GatewaySwimmingLaneRouteJson") + ".Conditions." + std::to_string(dep1 + 1) + ".Name", gatewaySwimmingLaneRouteJson.conditions[dep1].name); - setParameter(std::string("GatewaySwimmingLaneRouteJson") + ".Conditions." + std::to_string(dep1 + 1) + ".Type", gatewaySwimmingLaneRouteJson.conditions[dep1].type); - setParameter(std::string("GatewaySwimmingLaneRouteJson") + ".Conditions." + std::to_string(dep1 + 1) + ".Cond", gatewaySwimmingLaneRouteJson.conditions[dep1].cond); - setParameter(std::string("GatewaySwimmingLaneRouteJson") + ".Conditions." + std::to_string(dep1 + 1) + ".Value", gatewaySwimmingLaneRouteJson.conditions[dep1].value); - } - setParameter(std::string("GatewaySwimmingLaneRouteJson") + ".GatewayId", std::to_string(gatewaySwimmingLaneRouteJson.gatewayId)); -} - -std::string CreateOrUpdateSwimmingLaneRequest::getRegionId() const { - return regionId_; -} - -void CreateOrUpdateSwimmingLaneRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string CreateOrUpdateSwimmingLaneRequest::getEntryRule() const { return entryRule_; } @@ -146,20 +82,18 @@ void CreateOrUpdateSwimmingLaneRequest::setEntryRules(const std::vector + +using AlibabaCloud::Mse::Model::DeleteCircuitBreakerRulesRequest; + +DeleteCircuitBreakerRulesRequest::DeleteCircuitBreakerRulesRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteCircuitBreakerRules") { + setMethod(HttpRequest::Method::Post); +} + +DeleteCircuitBreakerRulesRequest::~DeleteCircuitBreakerRulesRequest() {} + +std::string DeleteCircuitBreakerRulesRequest::getMseSessionId() const { + return mseSessionId_; +} + +void DeleteCircuitBreakerRulesRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string DeleteCircuitBreakerRulesRequest::getAppName() const { + return appName_; +} + +void DeleteCircuitBreakerRulesRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string DeleteCircuitBreakerRulesRequest::get_Namespace() const { + return _namespace_; +} + +void DeleteCircuitBreakerRulesRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string DeleteCircuitBreakerRulesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteCircuitBreakerRulesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::vector DeleteCircuitBreakerRulesRequest::getIds() const { + return ids_; +} + +void DeleteCircuitBreakerRulesRequest::setIds(const std::vector &ids) { + ids_ = ids; + for(int dep1 = 0; dep1 != ids.size(); dep1++) { + setParameter(std::string("Ids") + "." + std::to_string(dep1 + 1), std::to_string(ids[dep1])); + } +} + diff --git a/mse/src/model/DeleteCircuitBreakerRulesResult.cc b/mse/src/model/DeleteCircuitBreakerRulesResult.cc new file mode 100644 index 000000000..1afaf527f --- /dev/null +++ b/mse/src/model/DeleteCircuitBreakerRulesResult.cc @@ -0,0 +1,80 @@ +/* + * 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; + +DeleteCircuitBreakerRulesResult::DeleteCircuitBreakerRulesResult() : + ServiceResult() +{} + +DeleteCircuitBreakerRulesResult::DeleteCircuitBreakerRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCircuitBreakerRulesResult::~DeleteCircuitBreakerRulesResult() +{} + +void DeleteCircuitBreakerRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["RuleIdList"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string DeleteCircuitBreakerRulesResult::getMessage()const +{ + return message_; +} + +int DeleteCircuitBreakerRulesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector DeleteCircuitBreakerRulesResult::getData()const +{ + return data_; +} + +int DeleteCircuitBreakerRulesResult::getCode()const +{ + return code_; +} + +bool DeleteCircuitBreakerRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteEngineNamespaceRequest.cc b/mse/src/model/DeleteEngineNamespaceRequest.cc index a1832fd03..c3f383efc 100644 --- a/mse/src/model/DeleteEngineNamespaceRequest.cc +++ b/mse/src/model/DeleteEngineNamespaceRequest.cc @@ -34,6 +34,15 @@ void DeleteEngineNamespaceRequest::setMseSessionId(const std::string &mseSession setParameter(std::string("MseSessionId"), mseSessionId); } +std::string DeleteEngineNamespaceRequest::getId() const { + return id_; +} + +void DeleteEngineNamespaceRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("Id"), id); +} + std::string DeleteEngineNamespaceRequest::getClusterId() const { return clusterId_; } @@ -61,12 +70,3 @@ void DeleteEngineNamespaceRequest::setAcceptLanguage(const std::string &acceptLa setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string DeleteEngineNamespaceRequest::getId() const { - return id_; -} - -void DeleteEngineNamespaceRequest::setId(const std::string &id) { - id_ = id; - setParameter(std::string("Id"), id); -} - diff --git a/mse/src/model/DeleteFlowRulesRequest.cc b/mse/src/model/DeleteFlowRulesRequest.cc new file mode 100644 index 000000000..6c97bc005 --- /dev/null +++ b/mse/src/model/DeleteFlowRulesRequest.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::DeleteFlowRulesRequest; + +DeleteFlowRulesRequest::DeleteFlowRulesRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteFlowRules") { + setMethod(HttpRequest::Method::Post); +} + +DeleteFlowRulesRequest::~DeleteFlowRulesRequest() {} + +std::string DeleteFlowRulesRequest::getMseSessionId() const { + return mseSessionId_; +} + +void DeleteFlowRulesRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string DeleteFlowRulesRequest::getAppName() const { + return appName_; +} + +void DeleteFlowRulesRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string DeleteFlowRulesRequest::get_Namespace() const { + return _namespace_; +} + +void DeleteFlowRulesRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string DeleteFlowRulesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteFlowRulesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::vector DeleteFlowRulesRequest::getIds() const { + return ids_; +} + +void DeleteFlowRulesRequest::setIds(const std::vector &ids) { + ids_ = ids; + for(int dep1 = 0; dep1 != ids.size(); dep1++) { + setParameter(std::string("Ids") + "." + std::to_string(dep1 + 1), std::to_string(ids[dep1])); + } +} + diff --git a/mse/src/model/DeleteFlowRulesResult.cc b/mse/src/model/DeleteFlowRulesResult.cc new file mode 100644 index 000000000..e08528fad --- /dev/null +++ b/mse/src/model/DeleteFlowRulesResult.cc @@ -0,0 +1,80 @@ +/* + * 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; + +DeleteFlowRulesResult::DeleteFlowRulesResult() : + ServiceResult() +{} + +DeleteFlowRulesResult::DeleteFlowRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFlowRulesResult::~DeleteFlowRulesResult() +{} + +void DeleteFlowRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["RuleIdList"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string DeleteFlowRulesResult::getMessage()const +{ + return message_; +} + +int DeleteFlowRulesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector DeleteFlowRulesResult::getData()const +{ + return data_; +} + +int DeleteFlowRulesResult::getCode()const +{ + return code_; +} + +bool DeleteFlowRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteGatewayAuthConsumerRequest.cc b/mse/src/model/DeleteGatewayAuthConsumerRequest.cc new file mode 100644 index 000000000..0f4c493b0 --- /dev/null +++ b/mse/src/model/DeleteGatewayAuthConsumerRequest.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::DeleteGatewayAuthConsumerRequest; + +DeleteGatewayAuthConsumerRequest::DeleteGatewayAuthConsumerRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayAuthConsumer") { + setMethod(HttpRequest::Method::Post); +} + +DeleteGatewayAuthConsumerRequest::~DeleteGatewayAuthConsumerRequest() {} + +std::string DeleteGatewayAuthConsumerRequest::getMseSessionId() const { + return mseSessionId_; +} + +void DeleteGatewayAuthConsumerRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string DeleteGatewayAuthConsumerRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void DeleteGatewayAuthConsumerRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +long DeleteGatewayAuthConsumerRequest::getId() const { + return id_; +} + +void DeleteGatewayAuthConsumerRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); +} + +std::string DeleteGatewayAuthConsumerRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteGatewayAuthConsumerRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/DeleteGatewayAuthConsumerResourceRequest.cc b/mse/src/model/DeleteGatewayAuthConsumerResourceRequest.cc new file mode 100644 index 000000000..f587ecd84 --- /dev/null +++ b/mse/src/model/DeleteGatewayAuthConsumerResourceRequest.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::DeleteGatewayAuthConsumerResourceRequest; + +DeleteGatewayAuthConsumerResourceRequest::DeleteGatewayAuthConsumerResourceRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayAuthConsumerResource") { + setMethod(HttpRequest::Method::Post); +} + +DeleteGatewayAuthConsumerResourceRequest::~DeleteGatewayAuthConsumerResourceRequest() {} + +std::string DeleteGatewayAuthConsumerResourceRequest::getMseSessionId() const { + return mseSessionId_; +} + +void DeleteGatewayAuthConsumerResourceRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string DeleteGatewayAuthConsumerResourceRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void DeleteGatewayAuthConsumerResourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +long DeleteGatewayAuthConsumerResourceRequest::getConsumerId() const { + return consumerId_; +} + +void DeleteGatewayAuthConsumerResourceRequest::setConsumerId(long consumerId) { + consumerId_ = consumerId; + setParameter(std::string("ConsumerId"), std::to_string(consumerId)); +} + +std::string DeleteGatewayAuthConsumerResourceRequest::getIdList() const { + return idList_; +} + +void DeleteGatewayAuthConsumerResourceRequest::setIdList(const std::string &idList) { + idList_ = idList; + setParameter(std::string("IdList"), idList); +} + +std::string DeleteGatewayAuthConsumerResourceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteGatewayAuthConsumerResourceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/DeleteGatewayAuthConsumerResourceResult.cc b/mse/src/model/DeleteGatewayAuthConsumerResourceResult.cc new file mode 100644 index 000000000..d0225147e --- /dev/null +++ b/mse/src/model/DeleteGatewayAuthConsumerResourceResult.cc @@ -0,0 +1,100 @@ +/* + * 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; + +DeleteGatewayAuthConsumerResourceResult::DeleteGatewayAuthConsumerResourceResult() : + ServiceResult() +{} + +DeleteGatewayAuthConsumerResourceResult::DeleteGatewayAuthConsumerResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewayAuthConsumerResourceResult::~DeleteGatewayAuthConsumerResourceResult() +{} + +void DeleteGatewayAuthConsumerResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +std::string DeleteGatewayAuthConsumerResourceResult::getMessage()const +{ + return message_; +} + +int DeleteGatewayAuthConsumerResourceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteGatewayAuthConsumerResourceResult::getDynamicCode()const +{ + return dynamicCode_; +} + +bool DeleteGatewayAuthConsumerResourceResult::getData()const +{ + return data_; +} + +std::string DeleteGatewayAuthConsumerResourceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteGatewayAuthConsumerResourceResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int DeleteGatewayAuthConsumerResourceResult::getCode()const +{ + return code_; +} + +bool DeleteGatewayAuthConsumerResourceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteGatewayAuthConsumerResult.cc b/mse/src/model/DeleteGatewayAuthConsumerResult.cc new file mode 100644 index 000000000..52ef7c60e --- /dev/null +++ b/mse/src/model/DeleteGatewayAuthConsumerResult.cc @@ -0,0 +1,100 @@ +/* + * 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; + +DeleteGatewayAuthConsumerResult::DeleteGatewayAuthConsumerResult() : + ServiceResult() +{} + +DeleteGatewayAuthConsumerResult::DeleteGatewayAuthConsumerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewayAuthConsumerResult::~DeleteGatewayAuthConsumerResult() +{} + +void DeleteGatewayAuthConsumerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +std::string DeleteGatewayAuthConsumerResult::getMessage()const +{ + return message_; +} + +int DeleteGatewayAuthConsumerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteGatewayAuthConsumerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +bool DeleteGatewayAuthConsumerResult::getData()const +{ + return data_; +} + +std::string DeleteGatewayAuthConsumerResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteGatewayAuthConsumerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int DeleteGatewayAuthConsumerResult::getCode()const +{ + return code_; +} + +bool DeleteGatewayAuthConsumerResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteGatewayDomainRequest.cc b/mse/src/model/DeleteGatewayDomainRequest.cc index 19c340d82..50b152cc5 100644 --- a/mse/src/model/DeleteGatewayDomainRequest.cc +++ b/mse/src/model/DeleteGatewayDomainRequest.cc @@ -43,15 +43,6 @@ void DeleteGatewayDomainRequest::setGatewayUniqueId(const std::string &gatewayUn setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); } -std::string DeleteGatewayDomainRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void DeleteGatewayDomainRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - std::string DeleteGatewayDomainRequest::getId() const { return id_; } @@ -61,3 +52,12 @@ void DeleteGatewayDomainRequest::setId(const std::string &id) { setParameter(std::string("Id"), id); } +std::string DeleteGatewayDomainRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteGatewayDomainRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/DeleteGatewaySlbRequest.cc b/mse/src/model/DeleteGatewaySlbRequest.cc index c5c53beb8..1aec405dd 100644 --- a/mse/src/model/DeleteGatewaySlbRequest.cc +++ b/mse/src/model/DeleteGatewaySlbRequest.cc @@ -43,6 +43,15 @@ void DeleteGatewaySlbRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } +std::string DeleteGatewaySlbRequest::getSlbId() const { + return slbId_; +} + +void DeleteGatewaySlbRequest::setSlbId(const std::string &slbId) { + slbId_ = slbId; + setParameter(std::string("SlbId"), slbId); +} + std::string DeleteGatewaySlbRequest::getGatewayUniqueId() const { return gatewayUniqueId_; } diff --git a/mse/src/model/DeleteMigrationTaskRequest.cc b/mse/src/model/DeleteMigrationTaskRequest.cc index 74c44a519..8879c1d25 100644 --- a/mse/src/model/DeleteMigrationTaskRequest.cc +++ b/mse/src/model/DeleteMigrationTaskRequest.cc @@ -43,15 +43,6 @@ void DeleteMigrationTaskRequest::setRequestPars(const std::string &requestPars) setParameter(std::string("RequestPars"), requestPars); } -std::string DeleteMigrationTaskRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void DeleteMigrationTaskRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - std::string DeleteMigrationTaskRequest::getId() const { return id_; } @@ -61,3 +52,12 @@ void DeleteMigrationTaskRequest::setId(const std::string &id) { setParameter(std::string("Id"), id); } +std::string DeleteMigrationTaskRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteMigrationTaskRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/DeleteNacosConfigRequest.cc b/mse/src/model/DeleteNacosConfigRequest.cc index a43c69309..8b2e628cf 100644 --- a/mse/src/model/DeleteNacosConfigRequest.cc +++ b/mse/src/model/DeleteNacosConfigRequest.cc @@ -34,24 +34,6 @@ void DeleteNacosConfigRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } -std::string DeleteNacosConfigRequest::getInstanceId() const { - return instanceId_; -} - -void DeleteNacosConfigRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -std::string DeleteNacosConfigRequest::getDataId() const { - return dataId_; -} - -void DeleteNacosConfigRequest::setDataId(const std::string &dataId) { - dataId_ = dataId; - setParameter(std::string("DataId"), dataId); -} - std::string DeleteNacosConfigRequest::getNamespaceId() const { return namespaceId_; } @@ -61,15 +43,6 @@ void DeleteNacosConfigRequest::setNamespaceId(const std::string &namespaceId) { setParameter(std::string("NamespaceId"), namespaceId); } -std::string DeleteNacosConfigRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void DeleteNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - bool DeleteNacosConfigRequest::getBeta() const { return beta_; } @@ -88,3 +61,30 @@ void DeleteNacosConfigRequest::setGroup(const std::string &group) { setParameter(std::string("Group"), group); } +std::string DeleteNacosConfigRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteNacosConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DeleteNacosConfigRequest::getDataId() const { + return dataId_; +} + +void DeleteNacosConfigRequest::setDataId(const std::string &dataId) { + dataId_ = dataId; + setParameter(std::string("DataId"), dataId); +} + +std::string DeleteNacosConfigRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/DeleteNacosConfigsRequest.cc b/mse/src/model/DeleteNacosConfigsRequest.cc index 2b299411b..3a11c94ef 100644 --- a/mse/src/model/DeleteNacosConfigsRequest.cc +++ b/mse/src/model/DeleteNacosConfigsRequest.cc @@ -34,15 +34,6 @@ void DeleteNacosConfigsRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } -std::string DeleteNacosConfigsRequest::getInstanceId() const { - return instanceId_; -} - -void DeleteNacosConfigsRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - std::string DeleteNacosConfigsRequest::getNamespaceId() const { return namespaceId_; } @@ -52,6 +43,15 @@ void DeleteNacosConfigsRequest::setNamespaceId(const std::string &namespaceId) { setParameter(std::string("NamespaceId"), namespaceId); } +std::string DeleteNacosConfigsRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteNacosConfigsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + std::string DeleteNacosConfigsRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/DeleteNacosInstanceRequest.cc b/mse/src/model/DeleteNacosInstanceRequest.cc index d0687d276..1aa454004 100644 --- a/mse/src/model/DeleteNacosInstanceRequest.cc +++ b/mse/src/model/DeleteNacosInstanceRequest.cc @@ -43,15 +43,6 @@ void DeleteNacosInstanceRequest::setClusterName(const std::string &clusterName) setParameter(std::string("ClusterName"), clusterName); } -std::string DeleteNacosInstanceRequest::getIp() const { - return ip_; -} - -void DeleteNacosInstanceRequest::setIp(const std::string &ip) { - ip_ = ip; - setParameter(std::string("Ip"), ip); -} - bool DeleteNacosInstanceRequest::getEphemeral() const { return ephemeral_; } @@ -61,6 +52,33 @@ void DeleteNacosInstanceRequest::setEphemeral(bool ephemeral) { setParameter(std::string("Ephemeral"), ephemeral ? "true" : "false"); } +std::string DeleteNacosInstanceRequest::getNamespaceId() const { + return namespaceId_; +} + +void DeleteNacosInstanceRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string DeleteNacosInstanceRequest::getServiceName() const { + return serviceName_; +} + +void DeleteNacosInstanceRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +std::string DeleteNacosInstanceRequest::getIp() const { + return ip_; +} + +void DeleteNacosInstanceRequest::setIp(const std::string &ip) { + ip_ = ip; + setParameter(std::string("Ip"), ip); +} + std::string DeleteNacosInstanceRequest::getGroupName() const { return groupName_; } @@ -79,15 +97,6 @@ void DeleteNacosInstanceRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } -std::string DeleteNacosInstanceRequest::getNamespaceId() const { - return namespaceId_; -} - -void DeleteNacosInstanceRequest::setNamespaceId(const std::string &namespaceId) { - namespaceId_ = namespaceId; - setParameter(std::string("NamespaceId"), namespaceId); -} - int DeleteNacosInstanceRequest::getPort() const { return port_; } @@ -106,12 +115,3 @@ void DeleteNacosInstanceRequest::setAcceptLanguage(const std::string &acceptLang setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string DeleteNacosInstanceRequest::getServiceName() const { - return serviceName_; -} - -void DeleteNacosInstanceRequest::setServiceName(const std::string &serviceName) { - serviceName_ = serviceName; - setParameter(std::string("ServiceName"), serviceName); -} - diff --git a/mse/src/model/DeleteNacosServiceRequest.cc b/mse/src/model/DeleteNacosServiceRequest.cc index 98bc3b157..ef376cd38 100644 --- a/mse/src/model/DeleteNacosServiceRequest.cc +++ b/mse/src/model/DeleteNacosServiceRequest.cc @@ -34,6 +34,24 @@ void DeleteNacosServiceRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } +std::string DeleteNacosServiceRequest::getNamespaceId() const { + return namespaceId_; +} + +void DeleteNacosServiceRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string DeleteNacosServiceRequest::getServiceName() const { + return serviceName_; +} + +void DeleteNacosServiceRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + std::string DeleteNacosServiceRequest::getGroupName() const { return groupName_; } @@ -52,15 +70,6 @@ void DeleteNacosServiceRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } -std::string DeleteNacosServiceRequest::getNamespaceId() const { - return namespaceId_; -} - -void DeleteNacosServiceRequest::setNamespaceId(const std::string &namespaceId) { - namespaceId_ = namespaceId; - setParameter(std::string("NamespaceId"), namespaceId); -} - std::string DeleteNacosServiceRequest::getAcceptLanguage() const { return acceptLanguage_; } @@ -70,12 +79,3 @@ void DeleteNacosServiceRequest::setAcceptLanguage(const std::string &acceptLangu setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string DeleteNacosServiceRequest::getServiceName() const { - return serviceName_; -} - -void DeleteNacosServiceRequest::setServiceName(const std::string &serviceName) { - serviceName_ = serviceName; - setParameter(std::string("ServiceName"), serviceName); -} - diff --git a/mse/src/model/DeleteNamespaceRequest.cc b/mse/src/model/DeleteNamespaceRequest.cc new file mode 100644 index 000000000..4207ec937 --- /dev/null +++ b/mse/src/model/DeleteNamespaceRequest.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::DeleteNamespaceRequest; + +DeleteNamespaceRequest::DeleteNamespaceRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteNamespace") { + setMethod(HttpRequest::Method::Post); +} + +DeleteNamespaceRequest::~DeleteNamespaceRequest() {} + +std::string DeleteNamespaceRequest::getMseSessionId() const { + return mseSessionId_; +} + +void DeleteNamespaceRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string DeleteNamespaceRequest::getName() const { + return name_; +} + +void DeleteNamespaceRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string DeleteNamespaceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteNamespaceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string DeleteNamespaceRequest::getRegion() const { + return region_; +} + +void DeleteNamespaceRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/DeleteNamespaceResult.cc b/mse/src/model/DeleteNamespaceResult.cc new file mode 100644 index 000000000..039654476 --- /dev/null +++ b/mse/src/model/DeleteNamespaceResult.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; + +DeleteNamespaceResult::DeleteNamespaceResult() : + ServiceResult() +{} + +DeleteNamespaceResult::DeleteNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNamespaceResult::~DeleteNamespaceResult() +{} + +void DeleteNamespaceResult::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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string DeleteNamespaceResult::getMessage()const +{ + return message_; +} + +int DeleteNamespaceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long DeleteNamespaceResult::getData()const +{ + return data_; +} + +std::string DeleteNamespaceResult::getErrorCode()const +{ + return errorCode_; +} + +bool DeleteNamespaceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteSecurityGroupRuleRequest.cc b/mse/src/model/DeleteSecurityGroupRuleRequest.cc index 00ff58c44..d6c7444ec 100644 --- a/mse/src/model/DeleteSecurityGroupRuleRequest.cc +++ b/mse/src/model/DeleteSecurityGroupRuleRequest.cc @@ -43,15 +43,6 @@ void DeleteSecurityGroupRuleRequest::setGatewayUniqueId(const std::string &gatew 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_; } @@ -61,3 +52,12 @@ void DeleteSecurityGroupRuleRequest::setId(long id) { setParameter(std::string("Id"), std::to_string(id)); } +std::string DeleteSecurityGroupRuleRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteSecurityGroupRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/DeleteServiceSourceRequest.cc b/mse/src/model/DeleteServiceSourceRequest.cc index 502c303af..cda5312c8 100644 --- a/mse/src/model/DeleteServiceSourceRequest.cc +++ b/mse/src/model/DeleteServiceSourceRequest.cc @@ -25,15 +25,6 @@ DeleteServiceSourceRequest::DeleteServiceSourceRequest() DeleteServiceSourceRequest::~DeleteServiceSourceRequest() {} -long DeleteServiceSourceRequest::getSourceId() const { - return sourceId_; -} - -void DeleteServiceSourceRequest::setSourceId(long sourceId) { - sourceId_ = sourceId; - setParameter(std::string("SourceId"), std::to_string(sourceId)); -} - std::string DeleteServiceSourceRequest::getMseSessionId() const { return mseSessionId_; } @@ -52,6 +43,15 @@ void DeleteServiceSourceRequest::setGatewayUniqueId(const std::string &gatewayUn setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); } +long DeleteServiceSourceRequest::getSourceId() const { + return sourceId_; +} + +void DeleteServiceSourceRequest::setSourceId(long sourceId) { + sourceId_ = sourceId; + setParameter(std::string("SourceId"), std::to_string(sourceId)); +} + std::string DeleteServiceSourceRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/DeleteSwimmingLaneGroupRequest.cc b/mse/src/model/DeleteSwimmingLaneGroupRequest.cc index ccb50d02e..4151b136d 100644 --- a/mse/src/model/DeleteSwimmingLaneGroupRequest.cc +++ b/mse/src/model/DeleteSwimmingLaneGroupRequest.cc @@ -43,6 +43,24 @@ void DeleteSwimmingLaneGroupRequest::setGroupId(long groupId) { setParameter(std::string("GroupId"), std::to_string(groupId)); } +std::string DeleteSwimmingLaneGroupRequest::get_Namespace() const { + return _namespace_; +} + +void DeleteSwimmingLaneGroupRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string DeleteSwimmingLaneGroupRequest::getName() const { + return name_; +} + +void DeleteSwimmingLaneGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + std::string DeleteSwimmingLaneGroupRequest::getAcceptLanguage() const { return acceptLanguage_; } @@ -52,3 +70,12 @@ void DeleteSwimmingLaneGroupRequest::setAcceptLanguage(const std::string &accept setParameter(std::string("AcceptLanguage"), acceptLanguage); } +std::string DeleteSwimmingLaneGroupRequest::getRegion() const { + return region_; +} + +void DeleteSwimmingLaneGroupRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/DeleteSwimmingLaneRequest.cc b/mse/src/model/DeleteSwimmingLaneRequest.cc index 5bdec145d..b2500ba72 100644 --- a/mse/src/model/DeleteSwimmingLaneRequest.cc +++ b/mse/src/model/DeleteSwimmingLaneRequest.cc @@ -43,6 +43,15 @@ void DeleteSwimmingLaneRequest::setLaneId(long laneId) { setParameter(std::string("LaneId"), std::to_string(laneId)); } +std::string DeleteSwimmingLaneRequest::get_Namespace() const { + return _namespace_; +} + +void DeleteSwimmingLaneRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + std::string DeleteSwimmingLaneRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/DeleteZnodeRequest.cc b/mse/src/model/DeleteZnodeRequest.cc index d2b3117cf..751dbad7d 100644 --- a/mse/src/model/DeleteZnodeRequest.cc +++ b/mse/src/model/DeleteZnodeRequest.cc @@ -34,15 +34,6 @@ void DeleteZnodeRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } -std::string DeleteZnodeRequest::getClusterId() const { - return clusterId_; -} - -void DeleteZnodeRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - std::string DeleteZnodeRequest::getPath() const { return path_; } @@ -61,6 +52,15 @@ void DeleteZnodeRequest::setRequestPars(const std::string &requestPars) { setParameter(std::string("RequestPars"), requestPars); } +std::string DeleteZnodeRequest::getClusterId() const { + return clusterId_; +} + +void DeleteZnodeRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + std::string DeleteZnodeRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ExportNacosConfigRequest.cc b/mse/src/model/ExportNacosConfigRequest.cc index c64cbe1c8..871e29950 100644 --- a/mse/src/model/ExportNacosConfigRequest.cc +++ b/mse/src/model/ExportNacosConfigRequest.cc @@ -34,22 +34,13 @@ void ExportNacosConfigRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } -std::string ExportNacosConfigRequest::getInstanceId() const { - return instanceId_; +std::string ExportNacosConfigRequest::getDataIds() const { + return dataIds_; } -void ExportNacosConfigRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -std::string ExportNacosConfigRequest::getDataId() const { - return dataId_; -} - -void ExportNacosConfigRequest::setDataId(const std::string &dataId) { - dataId_ = dataId; - setParameter(std::string("DataId"), dataId); +void ExportNacosConfigRequest::setDataIds(const std::string &dataIds) { + dataIds_ = dataIds; + setParameter(std::string("DataIds"), dataIds); } std::string ExportNacosConfigRequest::getAppName() const { @@ -70,6 +61,33 @@ void ExportNacosConfigRequest::setNamespaceId(const std::string &namespaceId) { setParameter(std::string("NamespaceId"), namespaceId); } +std::string ExportNacosConfigRequest::getGroup() const { + return group_; +} + +void ExportNacosConfigRequest::setGroup(const std::string &group) { + group_ = group; + setParameter(std::string("Group"), group); +} + +std::string ExportNacosConfigRequest::getInstanceId() const { + return instanceId_; +} + +void ExportNacosConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ExportNacosConfigRequest::getDataId() const { + return dataId_; +} + +void ExportNacosConfigRequest::setDataId(const std::string &dataId) { + dataId_ = dataId; + setParameter(std::string("DataId"), dataId); +} + std::string ExportNacosConfigRequest::getAcceptLanguage() const { return acceptLanguage_; } @@ -88,12 +106,3 @@ void ExportNacosConfigRequest::setIds(const std::string &ids) { setParameter(std::string("Ids"), ids); } -std::string ExportNacosConfigRequest::getGroup() const { - return group_; -} - -void ExportNacosConfigRequest::setGroup(const std::string &group) { - group_ = group; - setParameter(std::string("Group"), group); -} - diff --git a/mse/src/model/ExportZookeeperDataRequest.cc b/mse/src/model/ExportZookeeperDataRequest.cc new file mode 100644 index 000000000..461124fab --- /dev/null +++ b/mse/src/model/ExportZookeeperDataRequest.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::ExportZookeeperDataRequest; + +ExportZookeeperDataRequest::ExportZookeeperDataRequest() + : RpcServiceRequest("mse", "2019-05-31", "ExportZookeeperData") { + setMethod(HttpRequest::Method::Post); +} + +ExportZookeeperDataRequest::~ExportZookeeperDataRequest() {} + +std::string ExportZookeeperDataRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ExportZookeeperDataRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ExportZookeeperDataRequest::getRegionId() const { + return regionId_; +} + +void ExportZookeeperDataRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ExportZookeeperDataRequest::getRequestPars() const { + return requestPars_; +} + +void ExportZookeeperDataRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string ExportZookeeperDataRequest::getExportType() const { + return exportType_; +} + +void ExportZookeeperDataRequest::setExportType(const std::string &exportType) { + exportType_ = exportType; + setParameter(std::string("ExportType"), exportType); +} + +std::string ExportZookeeperDataRequest::getInstanceId() const { + return instanceId_; +} + +void ExportZookeeperDataRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ExportZookeeperDataRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ExportZookeeperDataRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ExportZookeeperDataResult.cc b/mse/src/model/ExportZookeeperDataResult.cc new file mode 100644 index 000000000..36b3b9b50 --- /dev/null +++ b/mse/src/model/ExportZookeeperDataResult.cc @@ -0,0 +1,103 @@ +/* + * 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; + +ExportZookeeperDataResult::ExportZookeeperDataResult() : + ServiceResult() +{} + +ExportZookeeperDataResult::ExportZookeeperDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExportZookeeperDataResult::~ExportZookeeperDataResult() +{} + +void ExportZookeeperDataResult::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["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["ExportType"].isNull()) + data_.exportType = dataNode["ExportType"].asString(); + if(!dataNode["ContentMap"].isNull()) + data_.contentMap = dataNode["ContentMap"].asString(); + if(!dataNode["Extend"].isNull()) + data_.extend = dataNode["Extend"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["KubeoneTaskIds"].isNull()) + data_.kubeoneTaskIds = dataNode["KubeoneTaskIds"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = std::stoi(dataNode["Id"].asString()); + if(!dataNode["CreateTime"].isNull()) + data_.createTime = std::stol(dataNode["CreateTime"].asString()); + if(!dataNode["UpdateTime"].isNull()) + data_.updateTime = std::stol(dataNode["UpdateTime"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = value["HttpStatusCode"].asString(); + +} + +std::string ExportZookeeperDataResult::getMessage()const +{ + return message_; +} + +std::string ExportZookeeperDataResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ExportZookeeperDataResult::Data ExportZookeeperDataResult::getData()const +{ + return data_; +} + +std::string ExportZookeeperDataResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ExportZookeeperDataResult::getErrorCode()const +{ + return errorCode_; +} + +bool ExportZookeeperDataResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/FetchLosslessRuleListRequest.cc b/mse/src/model/FetchLosslessRuleListRequest.cc new file mode 100644 index 000000000..b99b72596 --- /dev/null +++ b/mse/src/model/FetchLosslessRuleListRequest.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::FetchLosslessRuleListRequest; + +FetchLosslessRuleListRequest::FetchLosslessRuleListRequest() + : RpcServiceRequest("mse", "2019-05-31", "FetchLosslessRuleList") { + setMethod(HttpRequest::Method::Post); +} + +FetchLosslessRuleListRequest::~FetchLosslessRuleListRequest() {} + +std::string FetchLosslessRuleListRequest::getMseSessionId() const { + return mseSessionId_; +} + +void FetchLosslessRuleListRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +int FetchLosslessRuleListRequest::getPageNumber() const { + return pageNumber_; +} + +void FetchLosslessRuleListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string FetchLosslessRuleListRequest::getAppName() const { + return appName_; +} + +void FetchLosslessRuleListRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string FetchLosslessRuleListRequest::getRegionId() const { + return regionId_; +} + +void FetchLosslessRuleListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int FetchLosslessRuleListRequest::getPageSize() const { + return pageSize_; +} + +void FetchLosslessRuleListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string FetchLosslessRuleListRequest::getAppId() const { + return appId_; +} + +void FetchLosslessRuleListRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string FetchLosslessRuleListRequest::get_Namespace() const { + return _namespace_; +} + +void FetchLosslessRuleListRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string FetchLosslessRuleListRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void FetchLosslessRuleListRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/FetchLosslessRuleListResult.cc b/mse/src/model/FetchLosslessRuleListResult.cc new file mode 100644 index 000000000..ea1f2874c --- /dev/null +++ b/mse/src/model/FetchLosslessRuleListResult.cc @@ -0,0 +1,119 @@ +/* + * 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; + +FetchLosslessRuleListResult::FetchLosslessRuleListResult() : + ServiceResult() +{} + +FetchLosslessRuleListResult::FetchLosslessRuleListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FetchLosslessRuleListResult::~FetchLosslessRuleListResult() +{} + +void FetchLosslessRuleListResult::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["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stoi(dataNode["TotalSize"].asString()); + auto allResultsNode = dataNode["Results"]["ApplicationList"]; + for (auto dataNodeResultsApplicationList : allResultsNode) + { + Data::ApplicationList applicationListObject; + if(!dataNodeResultsApplicationList["AppName"].isNull()) + applicationListObject.appName = dataNodeResultsApplicationList["AppName"].asString(); + if(!dataNodeResultsApplicationList["AppId"].isNull()) + applicationListObject.appId = dataNodeResultsApplicationList["AppId"].asString(); + if(!dataNodeResultsApplicationList["Count"].isNull()) + applicationListObject.count = std::stoi(dataNodeResultsApplicationList["Count"].asString()); + if(!dataNodeResultsApplicationList["Enable"].isNull()) + applicationListObject.enable = dataNodeResultsApplicationList["Enable"].asString() == "true"; + if(!dataNodeResultsApplicationList["WarmupTime"].isNull()) + applicationListObject.warmupTime = std::stoi(dataNodeResultsApplicationList["WarmupTime"].asString()); + if(!dataNodeResultsApplicationList["DelayTime"].isNull()) + applicationListObject.delayTime = std::stoi(dataNodeResultsApplicationList["DelayTime"].asString()); + if(!dataNodeResultsApplicationList["FuncType"].isNull()) + applicationListObject.funcType = std::stoi(dataNodeResultsApplicationList["FuncType"].asString()); + if(!dataNodeResultsApplicationList["Aligned"].isNull()) + applicationListObject.aligned = dataNodeResultsApplicationList["Aligned"].asString() == "true"; + if(!dataNodeResultsApplicationList["Related"].isNull()) + applicationListObject.related = dataNodeResultsApplicationList["Related"].asString() == "true"; + if(!dataNodeResultsApplicationList["LossLessDetail"].isNull()) + applicationListObject.lossLessDetail = dataNodeResultsApplicationList["LossLessDetail"].asString() == "true"; + if(!dataNodeResultsApplicationList["Notice"].isNull()) + applicationListObject.notice = dataNodeResultsApplicationList["Notice"].asString() == "true"; + data_.results.push_back(applicationListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string FetchLosslessRuleListResult::getMessage()const +{ + return message_; +} + +int FetchLosslessRuleListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +FetchLosslessRuleListResult::Data FetchLosslessRuleListResult::getData()const +{ + return data_; +} + +std::string FetchLosslessRuleListResult::getErrorCode()const +{ + return errorCode_; +} + +int FetchLosslessRuleListResult::getCode()const +{ + return code_; +} + +bool FetchLosslessRuleListResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetAppMessageQueueRouteRequest.cc b/mse/src/model/GetAppMessageQueueRouteRequest.cc index b711b0b23..cb580c978 100644 --- a/mse/src/model/GetAppMessageQueueRouteRequest.cc +++ b/mse/src/model/GetAppMessageQueueRouteRequest.cc @@ -34,6 +34,15 @@ void GetAppMessageQueueRouteRequest::setMseSessionId(const std::string &mseSessi setParameter(std::string("MseSessionId"), mseSessionId); } +std::string GetAppMessageQueueRouteRequest::getAppName() const { + return appName_; +} + +void GetAppMessageQueueRouteRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + std::string GetAppMessageQueueRouteRequest::getAppId() const { return appId_; } @@ -43,6 +52,15 @@ void GetAppMessageQueueRouteRequest::setAppId(const std::string &appId) { setParameter(std::string("AppId"), appId); } +std::string GetAppMessageQueueRouteRequest::get_Namespace() const { + return _namespace_; +} + +void GetAppMessageQueueRouteRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + std::string GetAppMessageQueueRouteRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/GetApplicationListResult.cc b/mse/src/model/GetApplicationListResult.cc index a96800f0a..fbc06e47f 100644 --- a/mse/src/model/GetApplicationListResult.cc +++ b/mse/src/model/GetApplicationListResult.cc @@ -72,16 +72,20 @@ void GetApplicationListResult::parse(const std::string &payload) applicationListObject.regionId = dataNodeResultApplicationList["RegionId"].asString(); if(!dataNodeResultApplicationList["Namespace"].isNull()) applicationListObject._namespace = dataNodeResultApplicationList["Namespace"].asString(); + if(!dataNodeResultApplicationList["TagCount"].isNull()) + applicationListObject.tagCount = std::stol(dataNodeResultApplicationList["TagCount"].asString()); data_.result.push_back(applicationListObject); } + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; 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"; } @@ -100,6 +104,11 @@ GetApplicationListResult::Data GetApplicationListResult::getData()const return data_; } +std::string GetApplicationListResult::getErrorCode()const +{ + return errorCode_; +} + int GetApplicationListResult::getCode()const { return code_; diff --git a/mse/src/model/GetApplicationListWithMetircsResult.cc b/mse/src/model/GetApplicationListWithMetircsResult.cc index 0db114b3b..645688eee 100644 --- a/mse/src/model/GetApplicationListWithMetircsResult.cc +++ b/mse/src/model/GetApplicationListWithMetircsResult.cc @@ -50,16 +50,20 @@ void GetApplicationListWithMetircsResult::parse(const std::string &payload) for (auto dataNodeResultApplicationList : allResultNode) { Data::ApplicationList applicationListObject; + if(!dataNodeResultApplicationList["RegionId"].isNull()) + applicationListObject.regionId = dataNodeResultApplicationList["RegionId"].asString(); + if(!dataNodeResultApplicationList["Namespace"].isNull()) + applicationListObject._namespace = dataNodeResultApplicationList["Namespace"].asString(); + if(!dataNodeResultApplicationList["AppName"].isNull()) + applicationListObject.appName = dataNodeResultApplicationList["AppName"].asString(); + if(!dataNodeResultApplicationList["AppId"].isNull()) + applicationListObject.appId = dataNodeResultApplicationList["AppId"].asString(); 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()) @@ -68,10 +72,10 @@ void GetApplicationListWithMetircsResult::parse(const std::string &payload) applicationListObject.source = dataNodeResultApplicationList["Source"].asString(); if(!dataNodeResultApplicationList["Language"].isNull()) applicationListObject.language = dataNodeResultApplicationList["Language"].asString(); - if(!dataNodeResultApplicationList["RegionId"].isNull()) - applicationListObject.regionId = dataNodeResultApplicationList["RegionId"].asString(); - if(!dataNodeResultApplicationList["Namespace"].isNull()) - applicationListObject._namespace = dataNodeResultApplicationList["Namespace"].asString(); + if(!dataNodeResultApplicationList["TagCount"].isNull()) + applicationListObject.tagCount = std::stol(dataNodeResultApplicationList["TagCount"].asString()); + if(!dataNodeResultApplicationList["AppType"].isNull()) + applicationListObject.appType = std::stoi(dataNodeResultApplicationList["AppType"].asString()); auto allCurMetricsNode = dataNodeResultApplicationList["CurMetrics"]["curMetricsItem"]; for (auto dataNodeResultApplicationListCurMetricscurMetricsItem : allCurMetricsNode) { diff --git a/mse/src/model/GetEngineNamepaceRequest.cc b/mse/src/model/GetEngineNamepaceRequest.cc index 1b7674fee..eb97ba607 100644 --- a/mse/src/model/GetEngineNamepaceRequest.cc +++ b/mse/src/model/GetEngineNamepaceRequest.cc @@ -34,6 +34,15 @@ void GetEngineNamepaceRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } +std::string GetEngineNamepaceRequest::getId() const { + return id_; +} + +void GetEngineNamepaceRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("Id"), id); +} + std::string GetEngineNamepaceRequest::getClusterId() const { return clusterId_; } @@ -61,12 +70,3 @@ void GetEngineNamepaceRequest::setAcceptLanguage(const std::string &acceptLangua setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string GetEngineNamepaceRequest::getId() const { - return id_; -} - -void GetEngineNamepaceRequest::setId(const std::string &id) { - id_ = id; - setParameter(std::string("Id"), id); -} - diff --git a/mse/src/model/GetGatewayAuthConsumerDetailRequest.cc b/mse/src/model/GetGatewayAuthConsumerDetailRequest.cc new file mode 100644 index 000000000..b99bdc464 --- /dev/null +++ b/mse/src/model/GetGatewayAuthConsumerDetailRequest.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::GetGatewayAuthConsumerDetailRequest; + +GetGatewayAuthConsumerDetailRequest::GetGatewayAuthConsumerDetailRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetGatewayAuthConsumerDetail") { + setMethod(HttpRequest::Method::Post); +} + +GetGatewayAuthConsumerDetailRequest::~GetGatewayAuthConsumerDetailRequest() {} + +std::string GetGatewayAuthConsumerDetailRequest::getMseSessionId() const { + return mseSessionId_; +} + +void GetGatewayAuthConsumerDetailRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string GetGatewayAuthConsumerDetailRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void GetGatewayAuthConsumerDetailRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +long GetGatewayAuthConsumerDetailRequest::getId() const { + return id_; +} + +void GetGatewayAuthConsumerDetailRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); +} + +std::string GetGatewayAuthConsumerDetailRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetGatewayAuthConsumerDetailRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/GetGatewayAuthConsumerDetailResult.cc b/mse/src/model/GetGatewayAuthConsumerDetailResult.cc new file mode 100644 index 000000000..bcc95e64d --- /dev/null +++ b/mse/src/model/GetGatewayAuthConsumerDetailResult.cc @@ -0,0 +1,155 @@ +/* + * 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; + +GetGatewayAuthConsumerDetailResult::GetGatewayAuthConsumerDetailResult() : + ServiceResult() +{} + +GetGatewayAuthConsumerDetailResult::GetGatewayAuthConsumerDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGatewayAuthConsumerDetailResult::~GetGatewayAuthConsumerDetailResult() +{} + +void GetGatewayAuthConsumerDetailResult::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["ConsumerStatus"].isNull()) + data_.consumerStatus = dataNode["ConsumerStatus"].asString() == "true"; + if(!dataNode["PrimaryUser"].isNull()) + data_.primaryUser = dataNode["PrimaryUser"].asString(); + if(!dataNode["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].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(!dataNode["EncodeType"].isNull()) + data_.encodeType = dataNode["EncodeType"].asString(); + if(!dataNode["Jwks"].isNull()) + data_.jwks = dataNode["Jwks"].asString(); + if(!dataNode["TokenName"].isNull()) + data_.tokenName = dataNode["TokenName"].asString(); + if(!dataNode["TokenPass"].isNull()) + data_.tokenPass = dataNode["TokenPass"].asString() == "true"; + if(!dataNode["TokenPosition"].isNull()) + data_.tokenPosition = dataNode["TokenPosition"].asString(); + if(!dataNode["TokenPrefix"].isNull()) + data_.tokenPrefix = dataNode["TokenPrefix"].asString(); + if(!dataNode["KeyName"].isNull()) + data_.keyName = dataNode["KeyName"].asString(); + if(!dataNode["KeyValue"].isNull()) + data_.keyValue = dataNode["KeyValue"].asString(); + auto allResourceListNode = dataNode["ResourceList"]["resource"]; + for (auto dataNodeResourceListresource : allResourceListNode) + { + Data::Resource resourceObject; + if(!dataNodeResourceListresource["Id"].isNull()) + resourceObject.id = std::stol(dataNodeResourceListresource["Id"].asString()); + if(!dataNodeResourceListresource["ConsumerId"].isNull()) + resourceObject.consumerId = std::stol(dataNodeResourceListresource["ConsumerId"].asString()); + if(!dataNodeResourceListresource["RouteId"].isNull()) + resourceObject.routeId = std::stol(dataNodeResourceListresource["RouteId"].asString()); + if(!dataNodeResourceListresource["RouteName"].isNull()) + resourceObject.routeName = dataNodeResourceListresource["RouteName"].asString(); + if(!dataNodeResourceListresource["ResourceStatus"].isNull()) + resourceObject.resourceStatus = dataNodeResourceListresource["ResourceStatus"].asString() == "true"; + if(!dataNodeResourceListresource["GatewayUniqueId"].isNull()) + resourceObject.gatewayUniqueId = dataNodeResourceListresource["GatewayUniqueId"].asString(); + if(!dataNodeResourceListresource["GmtCreate"].isNull()) + resourceObject.gmtCreate = dataNodeResourceListresource["GmtCreate"].asString(); + if(!dataNodeResourceListresource["GmtModified"].isNull()) + resourceObject.gmtModified = dataNodeResourceListresource["GmtModified"].asString(); + data_.resourceList.push_back(resourceObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string GetGatewayAuthConsumerDetailResult::getMessage()const +{ + return message_; +} + +int GetGatewayAuthConsumerDetailResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetGatewayAuthConsumerDetailResult::Data GetGatewayAuthConsumerDetailResult::getData()const +{ + return data_; +} + +std::string GetGatewayAuthConsumerDetailResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string GetGatewayAuthConsumerDetailResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetGatewayAuthConsumerDetailResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int GetGatewayAuthConsumerDetailResult::getCode()const +{ + return code_; +} + +bool GetGatewayAuthConsumerDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetGatewayDomainDetailRequest.cc b/mse/src/model/GetGatewayDomainDetailRequest.cc index 2573a9416..d5319a14e 100644 --- a/mse/src/model/GetGatewayDomainDetailRequest.cc +++ b/mse/src/model/GetGatewayDomainDetailRequest.cc @@ -43,15 +43,6 @@ void GetGatewayDomainDetailRequest::setGatewayUniqueId(const std::string &gatewa setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); } -std::string GetGatewayDomainDetailRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void GetGatewayDomainDetailRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - std::string GetGatewayDomainDetailRequest::getId() const { return id_; } @@ -61,3 +52,12 @@ void GetGatewayDomainDetailRequest::setId(const std::string &id) { setParameter(std::string("Id"), id); } +std::string GetGatewayDomainDetailRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetGatewayDomainDetailRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/GetGatewayResult.cc b/mse/src/model/GetGatewayResult.cc index 4bcf31a64..afe85db36 100644 --- a/mse/src/model/GetGatewayResult.cc +++ b/mse/src/model/GetGatewayResult.cc @@ -80,6 +80,14 @@ void GetGatewayResult::parse(const std::string &payload) data_.mseTag = dataNode["MseTag"].asString(); if(!dataNode["ResourceGroupId"].isNull()) data_.resourceGroupId = dataNode["ResourceGroupId"].asString(); + if(!dataNode["TotalReplica"].isNull()) + data_.totalReplica = std::stoi(dataNode["TotalReplica"].asString()); + if(!dataNode["Elastic"].isNull()) + data_.elastic = dataNode["Elastic"].asString() == "true"; + if(!dataNode["ElasticReplica"].isNull()) + data_.elasticReplica = std::stoi(dataNode["ElasticReplica"].asString()); + if(!dataNode["ElasticType"].isNull()) + data_.elasticType = dataNode["ElasticType"].asString(); auto xtraceDetailsNode = dataNode["XtraceDetails"]; if(!xtraceDetailsNode["Sample"].isNull()) data_.xtraceDetails.sample = std::stoi(xtraceDetailsNode["Sample"].asString()); @@ -92,6 +100,23 @@ void GetGatewayResult::parse(const std::string &payload) data_.logConfigDetails.projectName = logConfigDetailsNode["ProjectName"].asString(); if(!logConfigDetailsNode["LogStoreName"].isNull()) data_.logConfigDetails.logStoreName = logConfigDetailsNode["LogStoreName"].asString(); + auto elasticPolicyNode = dataNode["ElasticPolicy"]; + if(!elasticPolicyNode["MaxReplica"].isNull()) + data_.elasticPolicy.maxReplica = std::stoi(elasticPolicyNode["MaxReplica"].asString()); + if(!elasticPolicyNode["ElasticType"].isNull()) + data_.elasticPolicy.elasticType = elasticPolicyNode["ElasticType"].asString(); + auto allTimePolicyListNode = elasticPolicyNode["TimePolicyList"]["timePolicyListItem"]; + for (auto elasticPolicyNodeTimePolicyListtimePolicyListItem : allTimePolicyListNode) + { + Data::ElasticPolicy::TimePolicyListItem timePolicyListItemObject; + if(!elasticPolicyNodeTimePolicyListtimePolicyListItem["DesiredReplica"].isNull()) + timePolicyListItemObject.desiredReplica = std::stoi(elasticPolicyNodeTimePolicyListtimePolicyListItem["DesiredReplica"].asString()); + if(!elasticPolicyNodeTimePolicyListtimePolicyListItem["StartTime"].isNull()) + timePolicyListItemObject.startTime = elasticPolicyNodeTimePolicyListtimePolicyListItem["StartTime"].asString(); + if(!elasticPolicyNodeTimePolicyListtimePolicyListItem["EndTime"].isNull()) + timePolicyListItemObject.endTime = elasticPolicyNodeTimePolicyListtimePolicyListItem["EndTime"].asString(); + data_.elasticPolicy.timePolicyList.push_back(timePolicyListItemObject); + } if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Message"].isNull()) diff --git a/mse/src/model/GetGatewayRouteDetailResult.cc b/mse/src/model/GetGatewayRouteDetailResult.cc index d293285a3..ed7de896b 100644 --- a/mse/src/model/GetGatewayRouteDetailResult.cc +++ b/mse/src/model/GetGatewayRouteDetailResult.cc @@ -76,6 +76,8 @@ void GetGatewayRouteDetailResult::parse(const std::string &payload) data_.ahasStatus = std::stoi(dataNode["AhasStatus"].asString()); if(!dataNode["Fallback"].isNull()) data_.fallback = dataNode["Fallback"].asString() == "true"; + if(!dataNode["Policies"].isNull()) + data_.policies = dataNode["Policies"].asString(); auto allRouteServicesNode = dataNode["RouteServices"]["RouteServicesItem"]; for (auto dataNodeRouteServicesRouteServicesItem : allRouteServicesNode) { diff --git a/mse/src/model/GetGovernanceKubernetesClusterRequest.cc b/mse/src/model/GetGovernanceKubernetesClusterRequest.cc index 5d2c21771..ad3d53003 100644 --- a/mse/src/model/GetGovernanceKubernetesClusterRequest.cc +++ b/mse/src/model/GetGovernanceKubernetesClusterRequest.cc @@ -34,15 +34,6 @@ void GetGovernanceKubernetesClusterRequest::setMseSessionId(const std::string &m setParameter(std::string("MseSessionId"), mseSessionId); } -std::string GetGovernanceKubernetesClusterRequest::getClusterId() const { - return clusterId_; -} - -void GetGovernanceKubernetesClusterRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - std::string GetGovernanceKubernetesClusterRequest::getRegionId() const { return regionId_; } @@ -52,6 +43,15 @@ void GetGovernanceKubernetesClusterRequest::setRegionId(const std::string ®io setParameter(std::string("RegionId"), regionId); } +std::string GetGovernanceKubernetesClusterRequest::getClusterId() const { + return clusterId_; +} + +void GetGovernanceKubernetesClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + std::string GetGovernanceKubernetesClusterRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/GetImageRequest.cc b/mse/src/model/GetImageRequest.cc index 69c1f4918..231166878 100644 --- a/mse/src/model/GetImageRequest.cc +++ b/mse/src/model/GetImageRequest.cc @@ -34,15 +34,6 @@ void GetImageRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } -std::string GetImageRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void GetImageRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - std::string GetImageRequest::getVersionCode() const { return versionCode_; } @@ -52,3 +43,12 @@ void GetImageRequest::setVersionCode(const std::string &versionCode) { setParameter(std::string("VersionCode"), versionCode); } +std::string GetImageRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetImageRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/GetImportFileUrlRequest.cc b/mse/src/model/GetImportFileUrlRequest.cc index f88072540..ae6f6e1f4 100644 --- a/mse/src/model/GetImportFileUrlRequest.cc +++ b/mse/src/model/GetImportFileUrlRequest.cc @@ -34,6 +34,15 @@ void GetImportFileUrlRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } +std::string GetImportFileUrlRequest::getNamespaceId() const { + return namespaceId_; +} + +void GetImportFileUrlRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + std::string GetImportFileUrlRequest::getContentType() const { return contentType_; } @@ -52,15 +61,6 @@ void GetImportFileUrlRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } -std::string GetImportFileUrlRequest::getNamespaceId() const { - return namespaceId_; -} - -void GetImportFileUrlRequest::setNamespaceId(const std::string &namespaceId) { - namespaceId_ = namespaceId; - setParameter(std::string("NamespaceId"), namespaceId); -} - std::string GetImportFileUrlRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/GetKubernetesSourceRequest.cc b/mse/src/model/GetKubernetesSourceRequest.cc index ee4fd11ff..57efcfd18 100644 --- a/mse/src/model/GetKubernetesSourceRequest.cc +++ b/mse/src/model/GetKubernetesSourceRequest.cc @@ -43,6 +43,15 @@ void GetKubernetesSourceRequest::setGatewayUniqueId(const std::string &gatewayUn setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); } +bool GetKubernetesSourceRequest::getIsAll() const { + return isAll_; +} + +void GetKubernetesSourceRequest::setIsAll(bool isAll) { + isAll_ = isAll; + setParameter(std::string("IsAll"), isAll ? "true" : "false"); +} + std::string GetKubernetesSourceRequest::getVpcId() const { return vpcId_; } diff --git a/mse/src/model/GetLosslessRuleByAppRequest.cc b/mse/src/model/GetLosslessRuleByAppRequest.cc new file mode 100644 index 000000000..e4fd3a017 --- /dev/null +++ b/mse/src/model/GetLosslessRuleByAppRequest.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::GetLosslessRuleByAppRequest; + +GetLosslessRuleByAppRequest::GetLosslessRuleByAppRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetLosslessRuleByApp") { + setMethod(HttpRequest::Method::Post); +} + +GetLosslessRuleByAppRequest::~GetLosslessRuleByAppRequest() {} + +std::string GetLosslessRuleByAppRequest::getMseSessionId() const { + return mseSessionId_; +} + +void GetLosslessRuleByAppRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string GetLosslessRuleByAppRequest::getAppName() const { + return appName_; +} + +void GetLosslessRuleByAppRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string GetLosslessRuleByAppRequest::getRegionId() const { + return regionId_; +} + +void GetLosslessRuleByAppRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetLosslessRuleByAppRequest::getAppId() const { + return appId_; +} + +void GetLosslessRuleByAppRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string GetLosslessRuleByAppRequest::get_Namespace() const { + return _namespace_; +} + +void GetLosslessRuleByAppRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string GetLosslessRuleByAppRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetLosslessRuleByAppRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/GetLosslessRuleByAppResult.cc b/mse/src/model/GetLosslessRuleByAppResult.cc new file mode 100644 index 000000000..598c3ba3a --- /dev/null +++ b/mse/src/model/GetLosslessRuleByAppResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +GetLosslessRuleByAppResult::GetLosslessRuleByAppResult() : + ServiceResult() +{} + +GetLosslessRuleByAppResult::GetLosslessRuleByAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetLosslessRuleByAppResult::~GetLosslessRuleByAppResult() +{} + +void GetLosslessRuleByAppResult::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["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["Count"].isNull()) + data_.count = std::stoi(dataNode["Count"].asString()); + if(!dataNode["Enable"].isNull()) + data_.enable = dataNode["Enable"].asString() == "true"; + if(!dataNode["WarmupTime"].isNull()) + data_.warmupTime = std::stoi(dataNode["WarmupTime"].asString()); + if(!dataNode["DelayTime"].isNull()) + data_.delayTime = std::stoi(dataNode["DelayTime"].asString()); + if(!dataNode["FuncType"].isNull()) + data_.funcType = std::stoi(dataNode["FuncType"].asString()); + if(!dataNode["Aligned"].isNull()) + data_.aligned = dataNode["Aligned"].asString() == "true"; + if(!dataNode["Related"].isNull()) + data_.related = dataNode["Related"].asString() == "true"; + if(!dataNode["LossLessDetail"].isNull()) + data_.lossLessDetail = dataNode["LossLessDetail"].asString() == "true"; + if(!dataNode["Notice"].isNull()) + data_.notice = dataNode["Notice"].asString() == "true"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetLosslessRuleByAppResult::getMessage()const +{ + return message_; +} + +int GetLosslessRuleByAppResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetLosslessRuleByAppResult::Data GetLosslessRuleByAppResult::getData()const +{ + return data_; +} + +std::string GetLosslessRuleByAppResult::getErrorCode()const +{ + return errorCode_; +} + +int GetLosslessRuleByAppResult::getCode()const +{ + return code_; +} + +bool GetLosslessRuleByAppResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetNacosConfigRequest.cc b/mse/src/model/GetNacosConfigRequest.cc index e54724cbd..6c50cf0cb 100644 --- a/mse/src/model/GetNacosConfigRequest.cc +++ b/mse/src/model/GetNacosConfigRequest.cc @@ -34,24 +34,6 @@ void GetNacosConfigRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } -std::string GetNacosConfigRequest::getInstanceId() const { - return instanceId_; -} - -void GetNacosConfigRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -std::string GetNacosConfigRequest::getDataId() const { - return dataId_; -} - -void GetNacosConfigRequest::setDataId(const std::string &dataId) { - dataId_ = dataId; - setParameter(std::string("DataId"), dataId); -} - std::string GetNacosConfigRequest::getNamespaceId() const { return namespaceId_; } @@ -61,15 +43,6 @@ void GetNacosConfigRequest::setNamespaceId(const std::string &namespaceId) { setParameter(std::string("NamespaceId"), namespaceId); } -std::string GetNacosConfigRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void GetNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - bool GetNacosConfigRequest::getBeta() const { return beta_; } @@ -88,3 +61,30 @@ void GetNacosConfigRequest::setGroup(const std::string &group) { setParameter(std::string("Group"), group); } +std::string GetNacosConfigRequest::getInstanceId() const { + return instanceId_; +} + +void GetNacosConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string GetNacosConfigRequest::getDataId() const { + return dataId_; +} + +void GetNacosConfigRequest::setDataId(const std::string &dataId) { + dataId_ = dataId; + setParameter(std::string("DataId"), dataId); +} + +std::string GetNacosConfigRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/GetNacosHistoryConfigRequest.cc b/mse/src/model/GetNacosHistoryConfigRequest.cc index 7ca4a792b..4aa21cb0a 100644 --- a/mse/src/model/GetNacosHistoryConfigRequest.cc +++ b/mse/src/model/GetNacosHistoryConfigRequest.cc @@ -43,6 +43,24 @@ void GetNacosHistoryConfigRequest::setNid(const std::string &nid) { setParameter(std::string("Nid"), nid); } +std::string GetNacosHistoryConfigRequest::getNamespaceId() const { + return namespaceId_; +} + +void GetNacosHistoryConfigRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string GetNacosHistoryConfigRequest::getGroup() const { + return group_; +} + +void GetNacosHistoryConfigRequest::setGroup(const std::string &group) { + group_ = group; + setParameter(std::string("Group"), group); +} + std::string GetNacosHistoryConfigRequest::getInstanceId() const { return instanceId_; } @@ -61,15 +79,6 @@ void GetNacosHistoryConfigRequest::setDataId(const std::string &dataId) { setParameter(std::string("DataId"), dataId); } -std::string GetNacosHistoryConfigRequest::getNamespaceId() const { - return namespaceId_; -} - -void GetNacosHistoryConfigRequest::setNamespaceId(const std::string &namespaceId) { - namespaceId_ = namespaceId; - setParameter(std::string("NamespaceId"), namespaceId); -} - std::string GetNacosHistoryConfigRequest::getAcceptLanguage() const { return acceptLanguage_; } @@ -79,12 +88,3 @@ void GetNacosHistoryConfigRequest::setAcceptLanguage(const std::string &acceptLa setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string GetNacosHistoryConfigRequest::getGroup() const { - return group_; -} - -void GetNacosHistoryConfigRequest::setGroup(const std::string &group) { - group_ = group; - setParameter(std::string("Group"), group); -} - diff --git a/mse/src/model/GetServiceListPageRequest.cc b/mse/src/model/GetServiceListPageRequest.cc new file mode 100644 index 000000000..eed097831 --- /dev/null +++ b/mse/src/model/GetServiceListPageRequest.cc @@ -0,0 +1,126 @@ +/* + * 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::GetServiceListPageRequest; + +GetServiceListPageRequest::GetServiceListPageRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetServiceListPage") { + setMethod(HttpRequest::Method::Post); +} + +GetServiceListPageRequest::~GetServiceListPageRequest() {} + +std::string GetServiceListPageRequest::getMseSessionId() const { + return mseSessionId_; +} + +void GetServiceListPageRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +int GetServiceListPageRequest::getPageNumber() const { + return pageNumber_; +} + +void GetServiceListPageRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int GetServiceListPageRequest::getPageSize() const { + return pageSize_; +} + +void GetServiceListPageRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string GetServiceListPageRequest::getServiceName() const { + return serviceName_; +} + +void GetServiceListPageRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +std::string GetServiceListPageRequest::getSide() const { + return side_; +} + +void GetServiceListPageRequest::setSide(const std::string &side) { + side_ = side; + setParameter(std::string("Side"), side); +} + +std::string GetServiceListPageRequest::getIp() const { + return ip_; +} + +void GetServiceListPageRequest::setIp(const std::string &ip) { + ip_ = ip; + setParameter(std::string("Ip"), ip); +} + +std::string GetServiceListPageRequest::getServiceType() const { + return serviceType_; +} + +void GetServiceListPageRequest::setServiceType(const std::string &serviceType) { + serviceType_ = serviceType; + setParameter(std::string("ServiceType"), serviceType); +} + +std::string GetServiceListPageRequest::getAppId() const { + return appId_; +} + +void GetServiceListPageRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string GetServiceListPageRequest::get_Namespace() const { + return _namespace_; +} + +void GetServiceListPageRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string GetServiceListPageRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetServiceListPageRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string GetServiceListPageRequest::getRegion() const { + return region_; +} + +void GetServiceListPageRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/GetServiceListPageResult.cc b/mse/src/model/GetServiceListPageResult.cc new file mode 100644 index 000000000..493a30b8a --- /dev/null +++ b/mse/src/model/GetServiceListPageResult.cc @@ -0,0 +1,112 @@ +/* + * 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; + +GetServiceListPageResult::GetServiceListPageResult() : + ServiceResult() +{} + +GetServiceListPageResult::GetServiceListPageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceListPageResult::~GetServiceListPageResult() +{} + +void GetServiceListPageResult::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["CurrentPage"].isNull()) + data_.currentPage = dataNode["CurrentPage"].asString(); + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = dataNode["TotalSize"].asString(); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = dataNode["PageNumber"].asString(); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = dataNode["PageSize"].asString(); + auto allResultNode = dataNode["Result"]["MscServiceResponse"]; + for (auto dataNodeResultMscServiceResponse : allResultNode) + { + Data::MscServiceResponse mscServiceResponseObject; + if(!dataNodeResultMscServiceResponse["EdasAppName"].isNull()) + mscServiceResponseObject.edasAppName = dataNodeResultMscServiceResponse["EdasAppName"].asString(); + if(!dataNodeResultMscServiceResponse["AppName"].isNull()) + mscServiceResponseObject.appName = dataNodeResultMscServiceResponse["AppName"].asString(); + if(!dataNodeResultMscServiceResponse["Version"].isNull()) + mscServiceResponseObject.version = dataNodeResultMscServiceResponse["Version"].asString(); + if(!dataNodeResultMscServiceResponse["InstanceNum"].isNull()) + mscServiceResponseObject.instanceNum = std::stoi(dataNodeResultMscServiceResponse["InstanceNum"].asString()); + if(!dataNodeResultMscServiceResponse["GmtModifyTime"].isNull()) + mscServiceResponseObject.gmtModifyTime = dataNodeResultMscServiceResponse["GmtModifyTime"].asString(); + if(!dataNodeResultMscServiceResponse["EdasAppId"].isNull()) + mscServiceResponseObject.edasAppId = dataNodeResultMscServiceResponse["EdasAppId"].asString(); + if(!dataNodeResultMscServiceResponse["AppId"].isNull()) + mscServiceResponseObject.appId = dataNodeResultMscServiceResponse["AppId"].asString(); + if(!dataNodeResultMscServiceResponse["ServiceName"].isNull()) + mscServiceResponseObject.serviceName = dataNodeResultMscServiceResponse["ServiceName"].asString(); + if(!dataNodeResultMscServiceResponse["Group"].isNull()) + mscServiceResponseObject.group = dataNodeResultMscServiceResponse["Group"].asString(); + if(!dataNodeResultMscServiceResponse["ClusterName"].isNull()) + mscServiceResponseObject.clusterName = dataNodeResultMscServiceResponse["ClusterName"].asString(); + data_.result.push_back(mscServiceResponseObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + 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()); + +} + +std::string GetServiceListPageResult::getMessage()const +{ + return message_; +} + +int GetServiceListPageResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetServiceListPageResult::Data GetServiceListPageResult::getData()const +{ + return data_; +} + +int GetServiceListPageResult::getCode()const +{ + return code_; +} + +bool GetServiceListPageResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetServiceListenersRequest.cc b/mse/src/model/GetServiceListenersRequest.cc index d5e3275b1..b8bbbc509 100644 --- a/mse/src/model/GetServiceListenersRequest.cc +++ b/mse/src/model/GetServiceListenersRequest.cc @@ -61,6 +61,33 @@ void GetServiceListenersRequest::setNamespaceId(const std::string &namespaceId) setParameter(std::string("NamespaceId"), namespaceId); } +std::string GetServiceListenersRequest::getRequestPars() const { + return requestPars_; +} + +void GetServiceListenersRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string GetServiceListenersRequest::getGroupName() const { + return groupName_; +} + +void GetServiceListenersRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string GetServiceListenersRequest::getInstanceId() const { + return instanceId_; +} + +void GetServiceListenersRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + std::string GetServiceListenersRequest::getRegionId() const { return regionId_; } @@ -79,15 +106,6 @@ void GetServiceListenersRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } -std::string GetServiceListenersRequest::getRequestPars() const { - return requestPars_; -} - -void GetServiceListenersRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - std::string GetServiceListenersRequest::getServiceName() const { return serviceName_; } @@ -106,15 +124,6 @@ void GetServiceListenersRequest::setClusterId(const std::string &clusterId) { setParameter(std::string("ClusterId"), clusterId); } -std::string GetServiceListenersRequest::getGroupName() const { - return groupName_; -} - -void GetServiceListenersRequest::setGroupName(const std::string &groupName) { - groupName_ = groupName; - setParameter(std::string("GroupName"), groupName); -} - std::string GetServiceListenersRequest::getHasIpCount() const { return hasIpCount_; } @@ -124,15 +133,6 @@ void GetServiceListenersRequest::setHasIpCount(const std::string &hasIpCount) { setParameter(std::string("HasIpCount"), hasIpCount); } -std::string GetServiceListenersRequest::getInstanceId() const { - return instanceId_; -} - -void GetServiceListenersRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - std::string GetServiceListenersRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/GetServiceMethodPageRequest.cc b/mse/src/model/GetServiceMethodPageRequest.cc new file mode 100644 index 000000000..fee91413e --- /dev/null +++ b/mse/src/model/GetServiceMethodPageRequest.cc @@ -0,0 +1,162 @@ +/* + * 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::GetServiceMethodPageRequest; + +GetServiceMethodPageRequest::GetServiceMethodPageRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetServiceMethodPage") { + setMethod(HttpRequest::Method::Post); +} + +GetServiceMethodPageRequest::~GetServiceMethodPageRequest() {} + +std::string GetServiceMethodPageRequest::getMseSessionId() const { + return mseSessionId_; +} + +void GetServiceMethodPageRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string GetServiceMethodPageRequest::getServiceGroup() const { + return serviceGroup_; +} + +void GetServiceMethodPageRequest::setServiceGroup(const std::string &serviceGroup) { + serviceGroup_ = serviceGroup; + setParameter(std::string("ServiceGroup"), serviceGroup); +} + +std::string GetServiceMethodPageRequest::getPath() const { + return path_; +} + +void GetServiceMethodPageRequest::setPath(const std::string &path) { + path_ = path; + setParameter(std::string("Path"), path); +} + +std::string GetServiceMethodPageRequest::getAppName() const { + return appName_; +} + +void GetServiceMethodPageRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string GetServiceMethodPageRequest::getIp() const { + return ip_; +} + +void GetServiceMethodPageRequest::setIp(const std::string &ip) { + ip_ = ip; + setParameter(std::string("Ip"), ip); +} + +std::string GetServiceMethodPageRequest::getServiceVersion() const { + return serviceVersion_; +} + +void GetServiceMethodPageRequest::setServiceVersion(const std::string &serviceVersion) { + serviceVersion_ = serviceVersion; + setParameter(std::string("ServiceVersion"), serviceVersion); +} + +std::string GetServiceMethodPageRequest::getName() const { + return name_; +} + +void GetServiceMethodPageRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string GetServiceMethodPageRequest::getRegion() const { + return region_; +} + +void GetServiceMethodPageRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + +int GetServiceMethodPageRequest::getPageNumber() const { + return pageNumber_; +} + +void GetServiceMethodPageRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int GetServiceMethodPageRequest::getPageSize() const { + return pageSize_; +} + +void GetServiceMethodPageRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string GetServiceMethodPageRequest::getServiceName() const { + return serviceName_; +} + +void GetServiceMethodPageRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +std::string GetServiceMethodPageRequest::getServiceType() const { + return serviceType_; +} + +void GetServiceMethodPageRequest::setServiceType(const std::string &serviceType) { + serviceType_ = serviceType; + setParameter(std::string("ServiceType"), serviceType); +} + +std::string GetServiceMethodPageRequest::getAppId() const { + return appId_; +} + +void GetServiceMethodPageRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string GetServiceMethodPageRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetServiceMethodPageRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string GetServiceMethodPageRequest::getMethodController() const { + return methodController_; +} + +void GetServiceMethodPageRequest::setMethodController(const std::string &methodController) { + methodController_ = methodController; + setParameter(std::string("MethodController"), methodController); +} + diff --git a/mse/src/model/GetServiceMethodPageResult.cc b/mse/src/model/GetServiceMethodPageResult.cc new file mode 100644 index 000000000..f6aa3f702 --- /dev/null +++ b/mse/src/model/GetServiceMethodPageResult.cc @@ -0,0 +1,124 @@ +/* + * 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; + +GetServiceMethodPageResult::GetServiceMethodPageResult() : + ServiceResult() +{} + +GetServiceMethodPageResult::GetServiceMethodPageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceMethodPageResult::~GetServiceMethodPageResult() +{} + +void GetServiceMethodPageResult::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"]["Method"]; + for (auto dataNodeResultMethod : allResultNode) + { + Data::Method methodObject; + if(!dataNodeResultMethod["NameDetail"].isNull()) + methodObject.nameDetail = dataNodeResultMethod["NameDetail"].asString(); + if(!dataNodeResultMethod["ReturnDetails"].isNull()) + methodObject.returnDetails = dataNodeResultMethod["ReturnDetails"].asString(); + if(!dataNodeResultMethod["Name"].isNull()) + methodObject.name = dataNodeResultMethod["Name"].asString(); + if(!dataNodeResultMethod["MethodController"].isNull()) + methodObject.methodController = dataNodeResultMethod["MethodController"].asString(); + if(!dataNodeResultMethod["ReturnType"].isNull()) + methodObject.returnType = dataNodeResultMethod["ReturnType"].asString(); + auto allParameterDefinitionsNode = dataNodeResultMethod["ParameterDefinitions"]["ParameterDefinition"]; + for (auto dataNodeResultMethodParameterDefinitionsParameterDefinition : allParameterDefinitionsNode) + { + Data::Method::ParameterDefinition parameterDefinitionsObject; + if(!dataNodeResultMethodParameterDefinitionsParameterDefinition["Type"].isNull()) + parameterDefinitionsObject.type = dataNodeResultMethodParameterDefinitionsParameterDefinition["Type"].asString(); + if(!dataNodeResultMethodParameterDefinitionsParameterDefinition["Description"].isNull()) + parameterDefinitionsObject.description = dataNodeResultMethodParameterDefinitionsParameterDefinition["Description"].asString(); + if(!dataNodeResultMethodParameterDefinitionsParameterDefinition["Name"].isNull()) + parameterDefinitionsObject.name = dataNodeResultMethodParameterDefinitionsParameterDefinition["Name"].asString(); + methodObject.parameterDefinitions.push_back(parameterDefinitionsObject); + } + auto allParameterDetails = value["ParameterDetails"]["ParameterDetail"]; + for (auto value : allParameterDetails) + methodObject.parameterDetails.push_back(value.asString()); + auto allPaths = value["Paths"]["Path"]; + for (auto value : allPaths) + methodObject.paths.push_back(value.asString()); + auto allParameterTypes = value["ParameterTypes"]["ParameterType"]; + for (auto value : allParameterTypes) + methodObject.parameterTypes.push_back(value.asString()); + auto allRequestMethods = value["RequestMethods"]["RequestMethod"]; + for (auto value : allRequestMethods) + methodObject.requestMethods.push_back(value.asString()); + data_.result.push_back(methodObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + 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()); + +} + +std::string GetServiceMethodPageResult::getMessage()const +{ + return message_; +} + +int GetServiceMethodPageResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetServiceMethodPageResult::Data GetServiceMethodPageResult::getData()const +{ + return data_; +} + +int GetServiceMethodPageResult::getCode()const +{ + return code_; +} + +bool GetServiceMethodPageResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetTagsBySwimmingLaneGroupIdRequest.cc b/mse/src/model/GetTagsBySwimmingLaneGroupIdRequest.cc index abf70c763..e3a982cf0 100644 --- a/mse/src/model/GetTagsBySwimmingLaneGroupIdRequest.cc +++ b/mse/src/model/GetTagsBySwimmingLaneGroupIdRequest.cc @@ -43,6 +43,15 @@ void GetTagsBySwimmingLaneGroupIdRequest::setGroupId(long groupId) { setParameter(std::string("GroupId"), std::to_string(groupId)); } +std::string GetTagsBySwimmingLaneGroupIdRequest::get_Namespace() const { + return _namespace_; +} + +void GetTagsBySwimmingLaneGroupIdRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + std::string GetTagsBySwimmingLaneGroupIdRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/GetTagsBySwimmingLaneGroupIdResult.cc b/mse/src/model/GetTagsBySwimmingLaneGroupIdResult.cc index 575f4df16..581d0d99a 100644 --- a/mse/src/model/GetTagsBySwimmingLaneGroupIdResult.cc +++ b/mse/src/model/GetTagsBySwimmingLaneGroupIdResult.cc @@ -39,6 +39,35 @@ void GetTagsBySwimmingLaneGroupIdResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Tags"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } +std::string GetTagsBySwimmingLaneGroupIdResult::getMessage()const +{ + return message_; +} + +std::vector GetTagsBySwimmingLaneGroupIdResult::getData()const +{ + return data_; +} + +std::string GetTagsBySwimmingLaneGroupIdResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetTagsBySwimmingLaneGroupIdResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ImportNacosConfigRequest.cc b/mse/src/model/ImportNacosConfigRequest.cc index 82c1cec87..00b89265c 100644 --- a/mse/src/model/ImportNacosConfigRequest.cc +++ b/mse/src/model/ImportNacosConfigRequest.cc @@ -34,15 +34,6 @@ void ImportNacosConfigRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } -std::string ImportNacosConfigRequest::getInstanceId() const { - return instanceId_; -} - -void ImportNacosConfigRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - std::string ImportNacosConfigRequest::getNamespaceId() const { return namespaceId_; } @@ -52,6 +43,24 @@ void ImportNacosConfigRequest::setNamespaceId(const std::string &namespaceId) { setParameter(std::string("NamespaceId"), namespaceId); } +std::string ImportNacosConfigRequest::getPolicy() const { + return policy_; +} + +void ImportNacosConfigRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); +} + +std::string ImportNacosConfigRequest::getInstanceId() const { + return instanceId_; +} + +void ImportNacosConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + std::string ImportNacosConfigRequest::getAcceptLanguage() const { return acceptLanguage_; } @@ -70,12 +79,3 @@ void ImportNacosConfigRequest::setFileUrl(const std::string &fileUrl) { setParameter(std::string("FileUrl"), fileUrl); } -std::string ImportNacosConfigRequest::getPolicy() const { - return policy_; -} - -void ImportNacosConfigRequest::setPolicy(const std::string &policy) { - policy_ = policy; - setParameter(std::string("Policy"), policy); -} - diff --git a/mse/src/model/ImportServicesRequest.cc b/mse/src/model/ImportServicesRequest.cc index c6616421f..b8caa5def 100644 --- a/mse/src/model/ImportServicesRequest.cc +++ b/mse/src/model/ImportServicesRequest.cc @@ -79,6 +79,24 @@ void ImportServicesRequest::setSourceType(const std::string &sourceType) { setParameter(std::string("SourceType"), sourceType); } +std::string ImportServicesRequest::getFcServiceName() const { + return fcServiceName_; +} + +void ImportServicesRequest::setFcServiceName(const std::string &fcServiceName) { + fcServiceName_ = fcServiceName; + setParameter(std::string("FcServiceName"), fcServiceName); +} + +std::string ImportServicesRequest::getFcVersion() const { + return fcVersion_; +} + +void ImportServicesRequest::setFcVersion(const std::string &fcVersion) { + fcVersion_ = fcVersion; + setParameter(std::string("FcVersion"), fcVersion); +} + std::string ImportServicesRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ImportZookeeperDataRequest.cc b/mse/src/model/ImportZookeeperDataRequest.cc index 24c89ae2d..e2672d648 100644 --- a/mse/src/model/ImportZookeeperDataRequest.cc +++ b/mse/src/model/ImportZookeeperDataRequest.cc @@ -34,24 +34,6 @@ void ImportZookeeperDataRequest::setMseSessionId(const std::string &mseSessionId setParameter(std::string("MseSessionId"), mseSessionId); } -std::string ImportZookeeperDataRequest::getInstanceId() const { - return instanceId_; -} - -void ImportZookeeperDataRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -std::string ImportZookeeperDataRequest::getFileName() const { - return fileName_; -} - -void ImportZookeeperDataRequest::setFileName(const std::string &fileName) { - fileName_ = fileName; - setParameter(std::string("FileName"), fileName); -} - std::string ImportZookeeperDataRequest::getRegionId() const { return regionId_; } @@ -70,6 +52,24 @@ void ImportZookeeperDataRequest::setRequestPars(const std::string &requestPars) setParameter(std::string("RequestPars"), requestPars); } +std::string ImportZookeeperDataRequest::getInstanceId() const { + return instanceId_; +} + +void ImportZookeeperDataRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ImportZookeeperDataRequest::getFileName() const { + return fileName_; +} + +void ImportZookeeperDataRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setParameter(std::string("FileName"), fileName); +} + std::string ImportZookeeperDataRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ListAnsServiceClustersRequest.cc b/mse/src/model/ListAnsServiceClustersRequest.cc index 42497069f..2ffcec617 100644 --- a/mse/src/model/ListAnsServiceClustersRequest.cc +++ b/mse/src/model/ListAnsServiceClustersRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListAnsServiceClustersRequest; ListAnsServiceClustersRequest::ListAnsServiceClustersRequest() : RpcServiceRequest("mse", "2019-05-31", "ListAnsServiceClusters") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListAnsServiceClustersRequest::~ListAnsServiceClustersRequest() {} @@ -61,15 +61,6 @@ void ListAnsServiceClustersRequest::setNamespaceId(const std::string &namespaceI setParameter(std::string("NamespaceId"), namespaceId); } -std::string ListAnsServiceClustersRequest::getRequestPars() const { - return requestPars_; -} - -void ListAnsServiceClustersRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - int ListAnsServiceClustersRequest::getPageSize() const { return pageSize_; } diff --git a/mse/src/model/ListAnsServiceClustersResult.cc b/mse/src/model/ListAnsServiceClustersResult.cc index 30e6ae1de..2d59548f1 100644 --- a/mse/src/model/ListAnsServiceClustersResult.cc +++ b/mse/src/model/ListAnsServiceClustersResult.cc @@ -52,6 +52,8 @@ void ListAnsServiceClustersResult::parse(const std::string &payload) data_.metadata = dataNode["Metadata"].asString(); if(!dataNode["Ephemeral"].isNull()) data_.ephemeral = dataNode["Ephemeral"].asString() == "true"; + if(!dataNode["Source"].isNull()) + data_.source = dataNode["Source"].asString(); auto allClustersNode = dataNode["Clusters"]["NacosAnsCluster"]; for (auto dataNodeClustersNacosAnsCluster : allClustersNode) { @@ -72,15 +74,41 @@ void ListAnsServiceClustersResult::parse(const std::string &payload) nacosAnsClusterObject.metadata = dataNodeClustersNacosAnsCluster["Metadata"].asString(); data_.clusters.push_back(nacosAnsClusterObject); } + auto appDetailNode = dataNode["AppDetail"]; + if(!appDetailNode["AppId"].isNull()) + data_.appDetail.appId = appDetailNode["AppId"].asString(); + if(!appDetailNode["AppName"].isNull()) + data_.appDetail.appName = appDetailNode["AppName"].asString(); + if(!appDetailNode["Port"].isNull()) + data_.appDetail.port = std::stoi(appDetailNode["Port"].asString()); + if(!appDetailNode["CheckType"].isNull()) + data_.appDetail.checkType = appDetailNode["CheckType"].asString(); + if(!appDetailNode["CheckPath"].isNull()) + data_.appDetail.checkPath = appDetailNode["CheckPath"].asString(); + if(!appDetailNode["CheckTimeout"].isNull()) + data_.appDetail.checkTimeout = std::stoi(appDetailNode["CheckTimeout"].asString()); + if(!appDetailNode["CheckInternal"].isNull()) + data_.appDetail.checkInternal = std::stoi(appDetailNode["CheckInternal"].asString()); + if(!appDetailNode["HealthyCheckTimes"].isNull()) + data_.appDetail.healthyCheckTimes = std::stoi(appDetailNode["HealthyCheckTimes"].asString()); + if(!appDetailNode["UnhealthyCheckTimes"].isNull()) + data_.appDetail.unhealthyCheckTimes = std::stoi(appDetailNode["UnhealthyCheckTimes"].asString()); 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 ListAnsServiceClustersResult::getHttpCode()const +{ + return httpCode_; +} + std::string ListAnsServiceClustersResult::getMessage()const { return message_; diff --git a/mse/src/model/ListAnsServicesRequest.cc b/mse/src/model/ListAnsServicesRequest.cc index ea4939177..735d8a808 100644 --- a/mse/src/model/ListAnsServicesRequest.cc +++ b/mse/src/model/ListAnsServicesRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListAnsServicesRequest; ListAnsServicesRequest::ListAnsServicesRequest() : RpcServiceRequest("mse", "2019-05-31", "ListAnsServices") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListAnsServicesRequest::~ListAnsServicesRequest() {} @@ -34,6 +34,15 @@ void ListAnsServicesRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } +std::string ListAnsServicesRequest::getClusterName() const { + return clusterName_; +} + +void ListAnsServicesRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + setParameter(std::string("ClusterName"), clusterName); +} + int ListAnsServicesRequest::getPageNum() const { return pageNum_; } @@ -61,6 +70,33 @@ void ListAnsServicesRequest::setRequestPars(const std::string &requestPars) { setParameter(std::string("RequestPars"), requestPars); } +std::string ListAnsServicesRequest::getGroupName() const { + return groupName_; +} + +void ListAnsServicesRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string ListAnsServicesRequest::getInstanceId() const { + return instanceId_; +} + +void ListAnsServicesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListAnsServicesRequest::getRegionId() const { + return regionId_; +} + +void ListAnsServicesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + int ListAnsServicesRequest::getPageSize() const { return pageSize_; } @@ -88,15 +124,6 @@ void ListAnsServicesRequest::setClusterId(const std::string &clusterId) { setParameter(std::string("ClusterId"), clusterId); } -std::string ListAnsServicesRequest::getGroupName() const { - return groupName_; -} - -void ListAnsServicesRequest::setGroupName(const std::string &groupName) { - groupName_ = groupName; - setParameter(std::string("GroupName"), groupName); -} - std::string ListAnsServicesRequest::getHasIpCount() const { return hasIpCount_; } @@ -106,15 +133,6 @@ void ListAnsServicesRequest::setHasIpCount(const std::string &hasIpCount) { setParameter(std::string("HasIpCount"), hasIpCount); } -std::string ListAnsServicesRequest::getInstanceId() const { - return instanceId_; -} - -void ListAnsServicesRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - std::string ListAnsServicesRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ListAnsServicesResult.cc b/mse/src/model/ListAnsServicesResult.cc index e5a4ff5c4..0847d96b2 100644 --- a/mse/src/model/ListAnsServicesResult.cc +++ b/mse/src/model/ListAnsServicesResult.cc @@ -53,6 +53,8 @@ void ListAnsServicesResult::parse(const std::string &payload) dataObject.name = valueDataSimpleNacosAnsService["Name"].asString(); if(!valueDataSimpleNacosAnsService["ClusterCount"].isNull()) dataObject.clusterCount = std::stoi(valueDataSimpleNacosAnsService["ClusterCount"].asString()); + if(!valueDataSimpleNacosAnsService["Source"].isNull()) + dataObject.source = valueDataSimpleNacosAnsService["Source"].asString(); data_.push_back(dataObject); } if(!value["HttpCode"].isNull()) diff --git a/mse/src/model/ListAppBySwimmingLaneGroupTagRequest.cc b/mse/src/model/ListAppBySwimmingLaneGroupTagRequest.cc index daa12af7e..addb0acd0 100644 --- a/mse/src/model/ListAppBySwimmingLaneGroupTagRequest.cc +++ b/mse/src/model/ListAppBySwimmingLaneGroupTagRequest.cc @@ -34,6 +34,15 @@ void ListAppBySwimmingLaneGroupTagRequest::setMseSessionId(const std::string &ms setParameter(std::string("MseSessionId"), mseSessionId); } +std::string ListAppBySwimmingLaneGroupTagRequest::getTag() const { + return tag_; +} + +void ListAppBySwimmingLaneGroupTagRequest::setTag(const std::string &tag) { + tag_ = tag; + setParameter(std::string("Tag"), tag); +} + long ListAppBySwimmingLaneGroupTagRequest::getGroupId() const { return groupId_; } @@ -43,6 +52,15 @@ void ListAppBySwimmingLaneGroupTagRequest::setGroupId(long groupId) { setParameter(std::string("GroupId"), std::to_string(groupId)); } +std::string ListAppBySwimmingLaneGroupTagRequest::get_Namespace() const { + return _namespace_; +} + +void ListAppBySwimmingLaneGroupTagRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + std::string ListAppBySwimmingLaneGroupTagRequest::getAcceptLanguage() const { return acceptLanguage_; } @@ -52,12 +70,3 @@ void ListAppBySwimmingLaneGroupTagRequest::setAcceptLanguage(const std::string & setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string ListAppBySwimmingLaneGroupTagRequest::getTag() const { - return tag_; -} - -void ListAppBySwimmingLaneGroupTagRequest::setTag(const std::string &tag) { - tag_ = tag; - setParameter(std::string("Tag"), tag); -} - diff --git a/mse/src/model/ListApplicationsWithTagRulesRequest.cc b/mse/src/model/ListApplicationsWithTagRulesRequest.cc index 314eab568..093caace8 100644 --- a/mse/src/model/ListApplicationsWithTagRulesRequest.cc +++ b/mse/src/model/ListApplicationsWithTagRulesRequest.cc @@ -61,6 +61,15 @@ void ListApplicationsWithTagRulesRequest::setAppName(const std::string &appName) setParameter(std::string("AppName"), appName); } +int ListApplicationsWithTagRulesRequest::getPageSize() const { + return pageSize_; +} + +void ListApplicationsWithTagRulesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + std::string ListApplicationsWithTagRulesRequest::getAppId() const { return appId_; } @@ -70,13 +79,13 @@ void ListApplicationsWithTagRulesRequest::setAppId(const std::string &appId) { setParameter(std::string("AppId"), appId); } -int ListApplicationsWithTagRulesRequest::getPageSize() const { - return pageSize_; +std::string ListApplicationsWithTagRulesRequest::get_Namespace() const { + return _namespace_; } -void ListApplicationsWithTagRulesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); +void ListApplicationsWithTagRulesRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } std::string ListApplicationsWithTagRulesRequest::getAcceptLanguage() const { diff --git a/mse/src/model/ListApplicationsWithTagRulesResult.cc b/mse/src/model/ListApplicationsWithTagRulesResult.cc index 02b7dd71d..1e237242e 100644 --- a/mse/src/model/ListApplicationsWithTagRulesResult.cc +++ b/mse/src/model/ListApplicationsWithTagRulesResult.cc @@ -50,6 +50,8 @@ void ListApplicationsWithTagRulesResult::parse(const std::string &payload) for (auto dataNodeResultApplicationList : allResultNode) { Data::ApplicationList applicationListObject; + if(!dataNodeResultApplicationList["Namespace"].isNull()) + applicationListObject._namespace = dataNodeResultApplicationList["Namespace"].asString(); if(!dataNodeResultApplicationList["AppName"].isNull()) applicationListObject.appName = dataNodeResultApplicationList["AppName"].asString(); if(!dataNodeResultApplicationList["AppId"].isNull()) @@ -90,8 +92,6 @@ void ListApplicationsWithTagRulesResult::parse(const std::string &payload) 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"; @@ -112,11 +112,6 @@ ListApplicationsWithTagRulesResult::Data ListApplicationsWithTagRulesResult::get return data_; } -int ListApplicationsWithTagRulesResult::getCode()const -{ - return code_; -} - bool ListApplicationsWithTagRulesResult::getSuccess()const { return success_; diff --git a/mse/src/model/ListAuthPolicyRequest.cc b/mse/src/model/ListAuthPolicyRequest.cc new file mode 100644 index 000000000..26aba5436 --- /dev/null +++ b/mse/src/model/ListAuthPolicyRequest.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::ListAuthPolicyRequest; + +ListAuthPolicyRequest::ListAuthPolicyRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListAuthPolicy") { + setMethod(HttpRequest::Method::Post); +} + +ListAuthPolicyRequest::~ListAuthPolicyRequest() {} + +std::string ListAuthPolicyRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListAuthPolicyRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListAuthPolicyRequest::getSource() const { + return source_; +} + +void ListAuthPolicyRequest::setSource(const std::string &source) { + source_ = source; + setParameter(std::string("Source"), source); +} + +std::string ListAuthPolicyRequest::getPageNumber() const { + return pageNumber_; +} + +void ListAuthPolicyRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string ListAuthPolicyRequest::getProtocol() const { + return protocol_; +} + +void ListAuthPolicyRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +std::string ListAuthPolicyRequest::getPageSize() const { + return pageSize_; +} + +void ListAuthPolicyRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string ListAuthPolicyRequest::getAppId() const { + return appId_; +} + +void ListAuthPolicyRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string ListAuthPolicyRequest::getName() const { + return name_; +} + +void ListAuthPolicyRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string ListAuthPolicyRequest::get_Namespace() const { + return _namespace_; +} + +void ListAuthPolicyRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string ListAuthPolicyRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListAuthPolicyRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string ListAuthPolicyRequest::getRegion() const { + return region_; +} + +void ListAuthPolicyRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/ListAuthPolicyResult.cc b/mse/src/model/ListAuthPolicyResult.cc new file mode 100644 index 000000000..161e8ffb3 --- /dev/null +++ b/mse/src/model/ListAuthPolicyResult.cc @@ -0,0 +1,148 @@ +/* + * 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; + +ListAuthPolicyResult::ListAuthPolicyResult() : + ServiceResult() +{} + +ListAuthPolicyResult::ListAuthPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAuthPolicyResult::~ListAuthPolicyResult() +{} + +void ListAuthPolicyResult::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"]["Policy"]; + for (auto dataNodeResultPolicy : allResultNode) + { + Data::Policy policyObject; + if(!dataNodeResultPolicy["Status"].isNull()) + policyObject.status = std::stoi(dataNodeResultPolicy["Status"].asString()); + if(!dataNodeResultPolicy["NamespaceId"].isNull()) + policyObject.namespaceId = dataNodeResultPolicy["NamespaceId"].asString(); + if(!dataNodeResultPolicy["Protocol"].isNull()) + policyObject.protocol = dataNodeResultPolicy["Protocol"].asString(); + if(!dataNodeResultPolicy["AccountId"].isNull()) + policyObject.accountId = dataNodeResultPolicy["AccountId"].asString(); + if(!dataNodeResultPolicy["Source"].isNull()) + policyObject.source = dataNodeResultPolicy["Source"].asString(); + if(!dataNodeResultPolicy["RegionId"].isNull()) + policyObject.regionId = dataNodeResultPolicy["RegionId"].asString(); + if(!dataNodeResultPolicy["AppName"].isNull()) + policyObject.appName = dataNodeResultPolicy["AppName"].asString(); + if(!dataNodeResultPolicy["AppId"].isNull()) + policyObject.appId = dataNodeResultPolicy["AppId"].asString(); + if(!dataNodeResultPolicy["Name"].isNull()) + policyObject.name = dataNodeResultPolicy["Name"].asString(); + if(!dataNodeResultPolicy["Id"].isNull()) + policyObject.id = std::stoi(dataNodeResultPolicy["Id"].asString()); + if(!dataNodeResultPolicy["Enable"].isNull()) + policyObject.enable = dataNodeResultPolicy["Enable"].asString() == "true"; + if(!dataNodeResultPolicy["AuthType"].isNull()) + policyObject.authType = std::stoi(dataNodeResultPolicy["AuthType"].asString()); + if(!dataNodeResultPolicy["K8sNamespace"].isNull()) + policyObject.k8sNamespace = dataNodeResultPolicy["K8sNamespace"].asString(); + auto allAuthRuleNode = dataNodeResultPolicy["AuthRule"]["AuthRuleItem"]; + for (auto dataNodeResultPolicyAuthRuleAuthRuleItem : allAuthRuleNode) + { + Data::Policy::AuthRuleItem authRuleObject; + if(!dataNodeResultPolicyAuthRuleAuthRuleItem["Black"].isNull()) + authRuleObject.black = dataNodeResultPolicyAuthRuleAuthRuleItem["Black"].asString() == "true"; + if(!dataNodeResultPolicyAuthRuleAuthRuleItem["Path"].isNull()) + authRuleObject.path = dataNodeResultPolicyAuthRuleAuthRuleItem["Path"].asString(); + if(!dataNodeResultPolicyAuthRuleAuthRuleItem["AuthType"].isNull()) + authRuleObject.authType = std::stoi(dataNodeResultPolicyAuthRuleAuthRuleItem["AuthType"].asString()); + auto methodNode = value["Method"]; + if(!methodNode["Version"].isNull()) + authRuleObject.method.version = methodNode["Version"].asString(); + if(!methodNode["ServiceName"].isNull()) + authRuleObject.method.serviceName = methodNode["ServiceName"].asString(); + if(!methodNode["Name"].isNull()) + authRuleObject.method.name = methodNode["Name"].asString(); + if(!methodNode["Group"].isNull()) + authRuleObject.method.group = methodNode["Group"].asString(); + if(!methodNode["ReturnType"].isNull()) + authRuleObject.method.returnType = methodNode["ReturnType"].asString(); + auto allParameterTypes = methodNode["ParameterTypes"]["ParameterTypes"]; + for (auto value : allParameterTypes) + authRuleObject.method.parameterTypes.push_back(value.asString()); + auto allAppIds = value["AppIds"]["AppIds"]; + for (auto value : allAppIds) + authRuleObject.appIds.push_back(value.asString()); + auto allK8sNamespaces = value["K8sNamespaces"]["K8sNamespaces"]; + for (auto value : allK8sNamespaces) + authRuleObject.k8sNamespaces.push_back(value.asString()); + policyObject.authRule.push_back(authRuleObject); + } + data_.result.push_back(policyObject); + } + 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 ListAuthPolicyResult::getMessage()const +{ + return message_; +} + +int ListAuthPolicyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListAuthPolicyResult::Data ListAuthPolicyResult::getData()const +{ + return data_; +} + +int ListAuthPolicyResult::getCode()const +{ + return code_; +} + +bool ListAuthPolicyResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListCircuitBreakerRulesRequest.cc b/mse/src/model/ListCircuitBreakerRulesRequest.cc new file mode 100644 index 000000000..efaa78941 --- /dev/null +++ b/mse/src/model/ListCircuitBreakerRulesRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::ListCircuitBreakerRulesRequest; + +ListCircuitBreakerRulesRequest::ListCircuitBreakerRulesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListCircuitBreakerRules") { + setMethod(HttpRequest::Method::Post); +} + +ListCircuitBreakerRulesRequest::~ListCircuitBreakerRulesRequest() {} + +std::string ListCircuitBreakerRulesRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListCircuitBreakerRulesRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListCircuitBreakerRulesRequest::getAppName() const { + return appName_; +} + +void ListCircuitBreakerRulesRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +int ListCircuitBreakerRulesRequest::getPageSize() const { + return pageSize_; +} + +void ListCircuitBreakerRulesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +int ListCircuitBreakerRulesRequest::getPageIndex() const { + return pageIndex_; +} + +void ListCircuitBreakerRulesRequest::setPageIndex(int pageIndex) { + pageIndex_ = pageIndex; + setParameter(std::string("PageIndex"), std::to_string(pageIndex)); +} + +std::string ListCircuitBreakerRulesRequest::getResource() const { + return resource_; +} + +void ListCircuitBreakerRulesRequest::setResource(const std::string &resource) { + resource_ = resource; + setParameter(std::string("Resource"), resource); +} + +std::string ListCircuitBreakerRulesRequest::getAppId() const { + return appId_; +} + +void ListCircuitBreakerRulesRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string ListCircuitBreakerRulesRequest::get_Namespace() const { + return _namespace_; +} + +void ListCircuitBreakerRulesRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string ListCircuitBreakerRulesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListCircuitBreakerRulesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string ListCircuitBreakerRulesRequest::getResourceSearchKey() const { + return resourceSearchKey_; +} + +void ListCircuitBreakerRulesRequest::setResourceSearchKey(const std::string &resourceSearchKey) { + resourceSearchKey_ = resourceSearchKey; + setParameter(std::string("ResourceSearchKey"), resourceSearchKey); +} + diff --git a/mse/src/model/ListCircuitBreakerRulesResult.cc b/mse/src/model/ListCircuitBreakerRulesResult.cc new file mode 100644 index 000000000..ddc3d7d64 --- /dev/null +++ b/mse/src/model/ListCircuitBreakerRulesResult.cc @@ -0,0 +1,122 @@ +/* + * 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; + +ListCircuitBreakerRulesResult::ListCircuitBreakerRulesResult() : + ServiceResult() +{} + +ListCircuitBreakerRulesResult::ListCircuitBreakerRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCircuitBreakerRulesResult::~ListCircuitBreakerRulesResult() +{} + +void ListCircuitBreakerRulesResult::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["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stoi(dataNode["TotalSize"].asString()); + auto allResultNode = dataNode["Result"]["ResultItem"]; + for (auto dataNodeResultResultItem : allResultNode) + { + Data::ResultItem resultItemObject; + if(!dataNodeResultResultItem["Namespace"].isNull()) + resultItemObject._namespace = dataNodeResultResultItem["Namespace"].asString(); + if(!dataNodeResultResultItem["RuleId"].isNull()) + resultItemObject.ruleId = std::stol(dataNodeResultResultItem["RuleId"].asString()); + if(!dataNodeResultResultItem["AppName"].isNull()) + resultItemObject.appName = dataNodeResultResultItem["AppName"].asString(); + if(!dataNodeResultResultItem["Resource"].isNull()) + resultItemObject.resource = dataNodeResultResultItem["Resource"].asString(); + if(!dataNodeResultResultItem["Strategy"].isNull()) + resultItemObject.strategy = std::stoi(dataNodeResultResultItem["Strategy"].asString()); + if(!dataNodeResultResultItem["Threshold"].isNull()) + resultItemObject.threshold = std::stof(dataNodeResultResultItem["Threshold"].asString()); + if(!dataNodeResultResultItem["Enable"].isNull()) + resultItemObject.enable = dataNodeResultResultItem["Enable"].asString() == "true"; + if(!dataNodeResultResultItem["RetryTimeoutMs"].isNull()) + resultItemObject.retryTimeoutMs = std::stoi(dataNodeResultResultItem["RetryTimeoutMs"].asString()); + if(!dataNodeResultResultItem["StatIntervalMs"].isNull()) + resultItemObject.statIntervalMs = std::stoi(dataNodeResultResultItem["StatIntervalMs"].asString()); + if(!dataNodeResultResultItem["AppId"].isNull()) + resultItemObject.appId = dataNodeResultResultItem["AppId"].asString(); + if(!dataNodeResultResultItem["RegionId"].isNull()) + resultItemObject.regionId = dataNodeResultResultItem["RegionId"].asString(); + if(!dataNodeResultResultItem["FallbackObject"].isNull()) + resultItemObject.fallbackObject = dataNodeResultResultItem["FallbackObject"].asString(); + if(!dataNodeResultResultItem["MaxAllowedRtMs"].isNull()) + resultItemObject.maxAllowedRtMs = std::stoi(dataNodeResultResultItem["MaxAllowedRtMs"].asString()); + if(!dataNodeResultResultItem["MinRequestAmount"].isNull()) + resultItemObject.minRequestAmount = std::stoi(dataNodeResultResultItem["MinRequestAmount"].asString()); + if(!dataNodeResultResultItem["HalfOpenBaseAmountPerStep"].isNull()) + resultItemObject.halfOpenBaseAmountPerStep = std::stoi(dataNodeResultResultItem["HalfOpenBaseAmountPerStep"].asString()); + if(!dataNodeResultResultItem["HalfOpenRecoveryStepNum"].isNull()) + resultItemObject.halfOpenRecoveryStepNum = std::stoi(dataNodeResultResultItem["HalfOpenRecoveryStepNum"].asString()); + data_.result.push_back(resultItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListCircuitBreakerRulesResult::getMessage()const +{ + return message_; +} + +int ListCircuitBreakerRulesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListCircuitBreakerRulesResult::Data ListCircuitBreakerRulesResult::getData()const +{ + return data_; +} + +int ListCircuitBreakerRulesResult::getCode()const +{ + return code_; +} + +bool ListCircuitBreakerRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListClusterHealthCheckTaskRequest.cc b/mse/src/model/ListClusterHealthCheckTaskRequest.cc index 33dde0691..1e8ec4394 100644 --- a/mse/src/model/ListClusterHealthCheckTaskRequest.cc +++ b/mse/src/model/ListClusterHealthCheckTaskRequest.cc @@ -43,15 +43,6 @@ void ListClusterHealthCheckTaskRequest::setPageNum(int pageNum) { setParameter(std::string("PageNum"), std::to_string(pageNum)); } -std::string ListClusterHealthCheckTaskRequest::getInstanceId() const { - return instanceId_; -} - -void ListClusterHealthCheckTaskRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - std::string ListClusterHealthCheckTaskRequest::getRegionId() const { return regionId_; } @@ -79,6 +70,15 @@ void ListClusterHealthCheckTaskRequest::setRequestPars(const std::string &reques setParameter(std::string("RequestPars"), requestPars); } +std::string ListClusterHealthCheckTaskRequest::getInstanceId() const { + return instanceId_; +} + +void ListClusterHealthCheckTaskRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + std::string ListClusterHealthCheckTaskRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ListClusterTypesRequest.cc b/mse/src/model/ListClusterTypesRequest.cc index 0a72440cb..edb207f63 100644 --- a/mse/src/model/ListClusterTypesRequest.cc +++ b/mse/src/model/ListClusterTypesRequest.cc @@ -34,15 +34,6 @@ void ListClusterTypesRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } -std::string ListClusterTypesRequest::getConnectType() const { - return connectType_; -} - -void ListClusterTypesRequest::setConnectType(const std::string &connectType) { - connectType_ = connectType; - setParameter(std::string("ConnectType"), connectType); -} - std::string ListClusterTypesRequest::getRegionId() const { return regionId_; } @@ -52,6 +43,15 @@ void ListClusterTypesRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string ListClusterTypesRequest::getConnectType() const { + return connectType_; +} + +void ListClusterTypesRequest::setConnectType(const std::string &connectType) { + connectType_ = connectType; + setParameter(std::string("ConnectType"), connectType); +} + std::string ListClusterTypesRequest::getMseVersion() const { return mseVersion_; } diff --git a/mse/src/model/ListClustersRequest.cc b/mse/src/model/ListClustersRequest.cc index 5fdf49377..f83422003 100644 --- a/mse/src/model/ListClustersRequest.cc +++ b/mse/src/model/ListClustersRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListClustersRequest; ListClustersRequest::ListClustersRequest() : RpcServiceRequest("mse", "2019-05-31", "ListClusters") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListClustersRequest::~ListClustersRequest() {} @@ -34,15 +34,6 @@ void ListClustersRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } -std::string ListClustersRequest::getClusterAliasName() const { - return clusterAliasName_; -} - -void ListClustersRequest::setClusterAliasName(const std::string &clusterAliasName) { - clusterAliasName_ = clusterAliasName; - setParameter(std::string("ClusterAliasName"), clusterAliasName); -} - int ListClustersRequest::getPageNum() const { return pageNum_; } @@ -88,15 +79,6 @@ void ListClustersRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } -std::string ListClustersRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void ListClustersRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - std::vector ListClustersRequest::getTag() const { return tag_; } @@ -111,3 +93,21 @@ void ListClustersRequest::setTag(const std::vector &ta } } +std::string ListClustersRequest::getClusterAliasName() const { + return clusterAliasName_; +} + +void ListClustersRequest::setClusterAliasName(const std::string &clusterAliasName) { + clusterAliasName_ = clusterAliasName; + setParameter(std::string("ClusterAliasName"), clusterAliasName); +} + +std::string ListClustersRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListClustersRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListConfigTrackRequest.cc b/mse/src/model/ListConfigTrackRequest.cc index 1173d3c35..5094ed5d5 100644 --- a/mse/src/model/ListConfigTrackRequest.cc +++ b/mse/src/model/ListConfigTrackRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListConfigTrackRequest; ListConfigTrackRequest::ListConfigTrackRequest() : RpcServiceRequest("mse", "2019-05-31", "ListConfigTrack") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListConfigTrackRequest::~ListConfigTrackRequest() {} @@ -70,24 +70,6 @@ void ListConfigTrackRequest::setRequestPars(const std::string &requestPars) { setParameter(std::string("RequestPars"), requestPars); } -long ListConfigTrackRequest::getEndTs() const { - return endTs_; -} - -void ListConfigTrackRequest::setEndTs(long endTs) { - endTs_ = endTs; - setParameter(std::string("EndTs"), std::to_string(endTs)); -} - -long ListConfigTrackRequest::getPageSize() const { - return pageSize_; -} - -void ListConfigTrackRequest::setPageSize(long pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - std::string ListConfigTrackRequest::getGroup() const { return group_; } @@ -106,15 +88,6 @@ void ListConfigTrackRequest::setIp(const std::string &ip) { setParameter(std::string("Ip"), ip); } -bool ListConfigTrackRequest::getReverse() const { - return reverse_; -} - -void ListConfigTrackRequest::setReverse(bool reverse) { - reverse_ = reverse; - setParameter(std::string("Reverse"), reverse ? "true" : "false"); -} - std::string ListConfigTrackRequest::getInstanceId() const { return instanceId_; } @@ -124,6 +97,33 @@ void ListConfigTrackRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } +long ListConfigTrackRequest::getEndTs() const { + return endTs_; +} + +void ListConfigTrackRequest::setEndTs(long endTs) { + endTs_ = endTs; + setParameter(std::string("EndTs"), std::to_string(endTs)); +} + +long ListConfigTrackRequest::getPageSize() const { + return pageSize_; +} + +void ListConfigTrackRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +bool ListConfigTrackRequest::getReverse() const { + return reverse_; +} + +void ListConfigTrackRequest::setReverse(bool reverse) { + reverse_ = reverse; + setParameter(std::string("Reverse"), reverse ? "true" : "false"); +} + std::string ListConfigTrackRequest::getDataId() const { return dataId_; } diff --git a/mse/src/model/ListEngineNamespacesRequest.cc b/mse/src/model/ListEngineNamespacesRequest.cc index f477f0fce..6cfc2b6bf 100644 --- a/mse/src/model/ListEngineNamespacesRequest.cc +++ b/mse/src/model/ListEngineNamespacesRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListEngineNamespacesRequest; ListEngineNamespacesRequest::ListEngineNamespacesRequest() : RpcServiceRequest("mse", "2019-05-31", "ListEngineNamespaces") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListEngineNamespacesRequest::~ListEngineNamespacesRequest() {} @@ -34,15 +34,6 @@ void ListEngineNamespacesRequest::setMseSessionId(const std::string &mseSessionI setParameter(std::string("MseSessionId"), mseSessionId); } -std::string ListEngineNamespacesRequest::getClusterId() const { - return clusterId_; -} - -void ListEngineNamespacesRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - int ListEngineNamespacesRequest::getPageNum() const { return pageNum_; } @@ -52,15 +43,6 @@ void ListEngineNamespacesRequest::setPageNum(int pageNum) { setParameter(std::string("PageNum"), std::to_string(pageNum)); } -std::string ListEngineNamespacesRequest::getInstanceId() const { - return instanceId_; -} - -void ListEngineNamespacesRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - int ListEngineNamespacesRequest::getPageSize() const { return pageSize_; } @@ -70,6 +52,24 @@ void ListEngineNamespacesRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::string ListEngineNamespacesRequest::getClusterId() const { + return clusterId_; +} + +void ListEngineNamespacesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListEngineNamespacesRequest::getInstanceId() const { + return instanceId_; +} + +void ListEngineNamespacesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + std::string ListEngineNamespacesRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ListEngineNamespacesResult.cc b/mse/src/model/ListEngineNamespacesResult.cc index 551f86b1d..b6aff342e 100644 --- a/mse/src/model/ListEngineNamespacesResult.cc +++ b/mse/src/model/ListEngineNamespacesResult.cc @@ -57,6 +57,8 @@ void ListEngineNamespacesResult::parse(const std::string &payload) dataObject.configCount = std::stoi(valueDataNamespace["ConfigCount"].asString()); if(!valueDataNamespace["ServiceCount"].isNull()) dataObject.serviceCount = valueDataNamespace["ServiceCount"].asString(); + if(!valueDataNamespace["SourceType"].isNull()) + dataObject.sourceType = valueDataNamespace["SourceType"].asString(); data_.push_back(dataObject); } if(!value["HttpCode"].isNull()) diff --git a/mse/src/model/ListEurekaInstancesRequest.cc b/mse/src/model/ListEurekaInstancesRequest.cc index 0c4cbd554..adc57ab1c 100644 --- a/mse/src/model/ListEurekaInstancesRequest.cc +++ b/mse/src/model/ListEurekaInstancesRequest.cc @@ -34,15 +34,6 @@ void ListEurekaInstancesRequest::setMseSessionId(const std::string &mseSessionId setParameter(std::string("MseSessionId"), mseSessionId); } -std::string ListEurekaInstancesRequest::getClusterId() const { - return clusterId_; -} - -void ListEurekaInstancesRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - int ListEurekaInstancesRequest::getPageNum() const { return pageNum_; } @@ -70,15 +61,6 @@ void ListEurekaInstancesRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } -std::string ListEurekaInstancesRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void ListEurekaInstancesRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - std::string ListEurekaInstancesRequest::getServiceName() const { return serviceName_; } @@ -88,3 +70,21 @@ void ListEurekaInstancesRequest::setServiceName(const std::string &serviceName) setParameter(std::string("ServiceName"), serviceName); } +std::string ListEurekaInstancesRequest::getClusterId() const { + return clusterId_; +} + +void ListEurekaInstancesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListEurekaInstancesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListEurekaInstancesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListEurekaServicesRequest.cc b/mse/src/model/ListEurekaServicesRequest.cc index 1513794a2..a0b856d5f 100644 --- a/mse/src/model/ListEurekaServicesRequest.cc +++ b/mse/src/model/ListEurekaServicesRequest.cc @@ -34,15 +34,6 @@ void ListEurekaServicesRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } -std::string ListEurekaServicesRequest::getClusterId() const { - return clusterId_; -} - -void ListEurekaServicesRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - int ListEurekaServicesRequest::getPageNum() const { return pageNum_; } @@ -79,6 +70,15 @@ void ListEurekaServicesRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::string ListEurekaServicesRequest::getClusterId() const { + return clusterId_; +} + +void ListEurekaServicesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + std::string ListEurekaServicesRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ListExportZookeeperDataRequest.cc b/mse/src/model/ListExportZookeeperDataRequest.cc new file mode 100644 index 000000000..70c041962 --- /dev/null +++ b/mse/src/model/ListExportZookeeperDataRequest.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::ListExportZookeeperDataRequest; + +ListExportZookeeperDataRequest::ListExportZookeeperDataRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListExportZookeeperData") { + setMethod(HttpRequest::Method::Post); +} + +ListExportZookeeperDataRequest::~ListExportZookeeperDataRequest() {} + +std::string ListExportZookeeperDataRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListExportZookeeperDataRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +int ListExportZookeeperDataRequest::getPageNumber() const { + return pageNumber_; +} + +void ListExportZookeeperDataRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int ListExportZookeeperDataRequest::getPageSize() const { + return pageSize_; +} + +void ListExportZookeeperDataRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListExportZookeeperDataRequest::getInstanceId() const { + return instanceId_; +} + +void ListExportZookeeperDataRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListExportZookeeperDataRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListExportZookeeperDataRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListExportZookeeperDataResult.cc b/mse/src/model/ListExportZookeeperDataResult.cc new file mode 100644 index 000000000..9accf3d5c --- /dev/null +++ b/mse/src/model/ListExportZookeeperDataResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +ListExportZookeeperDataResult::ListExportZookeeperDataResult() : + ServiceResult() +{} + +ListExportZookeeperDataResult::ListExportZookeeperDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListExportZookeeperDataResult::~ListExportZookeeperDataResult() +{} + +void ListExportZookeeperDataResult::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["InstanceId"].isNull()) + dataObject.instanceId = valueDataDataItem["InstanceId"].asString(); + if(!valueDataDataItem["ExportType"].isNull()) + dataObject.exportType = valueDataDataItem["ExportType"].asString(); + if(!valueDataDataItem["ContentMap"].isNull()) + dataObject.contentMap = valueDataDataItem["ContentMap"].asString(); + if(!valueDataDataItem["Extend"].isNull()) + dataObject.extend = valueDataDataItem["Extend"].asString(); + if(!valueDataDataItem["Status"].isNull()) + dataObject.status = valueDataDataItem["Status"].asString(); + if(!valueDataDataItem["KubeoneTaskIds"].isNull()) + dataObject.kubeoneTaskIds = valueDataDataItem["KubeoneTaskIds"].asString(); + if(!valueDataDataItem["Id"].isNull()) + dataObject.id = std::stoi(valueDataDataItem["Id"].asString()); + if(!valueDataDataItem["CreateTime"].isNull()) + dataObject.createTime = std::stol(valueDataDataItem["CreateTime"].asString()); + if(!valueDataDataItem["UpdateTime"].isNull()) + dataObject.updateTime = std::stol(valueDataDataItem["UpdateTime"].asString()); + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = value["HttpStatusCode"].asString(); + +} + +std::string ListExportZookeeperDataResult::getMessage()const +{ + return message_; +} + +std::string ListExportZookeeperDataResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListExportZookeeperDataResult::getData()const +{ + return data_; +} + +std::string ListExportZookeeperDataResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListExportZookeeperDataResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListExportZookeeperDataResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListFlowRulesRequest.cc b/mse/src/model/ListFlowRulesRequest.cc new file mode 100644 index 000000000..2925620f5 --- /dev/null +++ b/mse/src/model/ListFlowRulesRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::ListFlowRulesRequest; + +ListFlowRulesRequest::ListFlowRulesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListFlowRules") { + setMethod(HttpRequest::Method::Post); +} + +ListFlowRulesRequest::~ListFlowRulesRequest() {} + +std::string ListFlowRulesRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListFlowRulesRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListFlowRulesRequest::getAppName() const { + return appName_; +} + +void ListFlowRulesRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +int ListFlowRulesRequest::getPageSize() const { + return pageSize_; +} + +void ListFlowRulesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +int ListFlowRulesRequest::getPageIndex() const { + return pageIndex_; +} + +void ListFlowRulesRequest::setPageIndex(int pageIndex) { + pageIndex_ = pageIndex; + setParameter(std::string("PageIndex"), std::to_string(pageIndex)); +} + +std::string ListFlowRulesRequest::getResource() const { + return resource_; +} + +void ListFlowRulesRequest::setResource(const std::string &resource) { + resource_ = resource; + setParameter(std::string("Resource"), resource); +} + +std::string ListFlowRulesRequest::getAppId() const { + return appId_; +} + +void ListFlowRulesRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string ListFlowRulesRequest::get_Namespace() const { + return _namespace_; +} + +void ListFlowRulesRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string ListFlowRulesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListFlowRulesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string ListFlowRulesRequest::getResourceSearchKey() const { + return resourceSearchKey_; +} + +void ListFlowRulesRequest::setResourceSearchKey(const std::string &resourceSearchKey) { + resourceSearchKey_ = resourceSearchKey; + setParameter(std::string("ResourceSearchKey"), resourceSearchKey); +} + diff --git a/mse/src/model/ListFlowRulesResult.cc b/mse/src/model/ListFlowRulesResult.cc new file mode 100644 index 000000000..1a7416425 --- /dev/null +++ b/mse/src/model/ListFlowRulesResult.cc @@ -0,0 +1,116 @@ +/* + * 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; + +ListFlowRulesResult::ListFlowRulesResult() : + ServiceResult() +{} + +ListFlowRulesResult::ListFlowRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFlowRulesResult::~ListFlowRulesResult() +{} + +void ListFlowRulesResult::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["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stoi(dataNode["TotalSize"].asString()); + auto allResultNode = dataNode["Result"]["ResultItem"]; + for (auto dataNodeResultResultItem : allResultNode) + { + Data::ResultItem resultItemObject; + if(!dataNodeResultResultItem["Namespace"].isNull()) + resultItemObject._namespace = dataNodeResultResultItem["Namespace"].asString(); + if(!dataNodeResultResultItem["RuleId"].isNull()) + resultItemObject.ruleId = std::stol(dataNodeResultResultItem["RuleId"].asString()); + if(!dataNodeResultResultItem["AppName"].isNull()) + resultItemObject.appName = dataNodeResultResultItem["AppName"].asString(); + if(!dataNodeResultResultItem["Resource"].isNull()) + resultItemObject.resource = dataNodeResultResultItem["Resource"].asString(); + if(!dataNodeResultResultItem["ControlBehavior"].isNull()) + resultItemObject.controlBehavior = std::stoi(dataNodeResultResultItem["ControlBehavior"].asString()); + if(!dataNodeResultResultItem["MaxQueueingTimeMs"].isNull()) + resultItemObject.maxQueueingTimeMs = std::stoi(dataNodeResultResultItem["MaxQueueingTimeMs"].asString()); + if(!dataNodeResultResultItem["Threshold"].isNull()) + resultItemObject.threshold = std::stof(dataNodeResultResultItem["Threshold"].asString()); + if(!dataNodeResultResultItem["Enable"].isNull()) + resultItemObject.enable = dataNodeResultResultItem["Enable"].asString() == "true"; + if(!dataNodeResultResultItem["AppId"].isNull()) + resultItemObject.appId = dataNodeResultResultItem["AppId"].asString(); + if(!dataNodeResultResultItem["RegionId"].isNull()) + resultItemObject.regionId = dataNodeResultResultItem["RegionId"].asString(); + if(!dataNodeResultResultItem["FallbackObject"].isNull()) + resultItemObject.fallbackObject = dataNodeResultResultItem["FallbackObject"].asString(); + if(!dataNodeResultResultItem["MetricType"].isNull()) + resultItemObject.metricType = std::stoi(dataNodeResultResultItem["MetricType"].asString()); + if(!dataNodeResultResultItem["TrafficTags"].isNull()) + resultItemObject.trafficTags = dataNodeResultResultItem["TrafficTags"].asString(); + data_.result.push_back(resultItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListFlowRulesResult::getMessage()const +{ + return message_; +} + +int ListFlowRulesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListFlowRulesResult::Data ListFlowRulesResult::getData()const +{ + return data_; +} + +int ListFlowRulesResult::getCode()const +{ + return code_; +} + +bool ListFlowRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListGatewayAuthConsumerRequest.cc b/mse/src/model/ListGatewayAuthConsumerRequest.cc new file mode 100644 index 000000000..8a3082a96 --- /dev/null +++ b/mse/src/model/ListGatewayAuthConsumerRequest.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::ListGatewayAuthConsumerRequest; + +ListGatewayAuthConsumerRequest::ListGatewayAuthConsumerRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListGatewayAuthConsumer") { + setMethod(HttpRequest::Method::Post); +} + +ListGatewayAuthConsumerRequest::~ListGatewayAuthConsumerRequest() {} + +std::string ListGatewayAuthConsumerRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListGatewayAuthConsumerRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListGatewayAuthConsumerRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void ListGatewayAuthConsumerRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string ListGatewayAuthConsumerRequest::getType() const { + return type_; +} + +void ListGatewayAuthConsumerRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string ListGatewayAuthConsumerRequest::getPageNum() const { + return pageNum_; +} + +void ListGatewayAuthConsumerRequest::setPageNum(const std::string &pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), pageNum); +} + +std::string ListGatewayAuthConsumerRequest::getPageSize() const { + return pageSize_; +} + +void ListGatewayAuthConsumerRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +bool ListGatewayAuthConsumerRequest::getConsumerStatus() const { + return consumerStatus_; +} + +void ListGatewayAuthConsumerRequest::setConsumerStatus(bool consumerStatus) { + consumerStatus_ = consumerStatus; + setParameter(std::string("ConsumerStatus"), consumerStatus ? "true" : "false"); +} + +std::string ListGatewayAuthConsumerRequest::getName() const { + return name_; +} + +void ListGatewayAuthConsumerRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string ListGatewayAuthConsumerRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListGatewayAuthConsumerRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListGatewayAuthConsumerResourceRequest.cc b/mse/src/model/ListGatewayAuthConsumerResourceRequest.cc new file mode 100644 index 000000000..1529b0ab3 --- /dev/null +++ b/mse/src/model/ListGatewayAuthConsumerResourceRequest.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::ListGatewayAuthConsumerResourceRequest; + +ListGatewayAuthConsumerResourceRequest::ListGatewayAuthConsumerResourceRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListGatewayAuthConsumerResource") { + setMethod(HttpRequest::Method::Post); +} + +ListGatewayAuthConsumerResourceRequest::~ListGatewayAuthConsumerResourceRequest() {} + +std::string ListGatewayAuthConsumerResourceRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListGatewayAuthConsumerResourceRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListGatewayAuthConsumerResourceRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void ListGatewayAuthConsumerResourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +long ListGatewayAuthConsumerResourceRequest::getConsumerId() const { + return consumerId_; +} + +void ListGatewayAuthConsumerResourceRequest::setConsumerId(long consumerId) { + consumerId_ = consumerId; + setParameter(std::string("ConsumerId"), std::to_string(consumerId)); +} + +std::string ListGatewayAuthConsumerResourceRequest::getPageNum() const { + return pageNum_; +} + +void ListGatewayAuthConsumerResourceRequest::setPageNum(const std::string &pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), pageNum); +} + +std::string ListGatewayAuthConsumerResourceRequest::getPageSize() const { + return pageSize_; +} + +void ListGatewayAuthConsumerResourceRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string ListGatewayAuthConsumerResourceRequest::getRouteName() const { + return routeName_; +} + +void ListGatewayAuthConsumerResourceRequest::setRouteName(const std::string &routeName) { + routeName_ = routeName; + setParameter(std::string("RouteName"), routeName); +} + +bool ListGatewayAuthConsumerResourceRequest::getResourceStatus() const { + return resourceStatus_; +} + +void ListGatewayAuthConsumerResourceRequest::setResourceStatus(bool resourceStatus) { + resourceStatus_ = resourceStatus; + setParameter(std::string("ResourceStatus"), resourceStatus ? "true" : "false"); +} + +std::string ListGatewayAuthConsumerResourceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListGatewayAuthConsumerResourceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListGatewayAuthConsumerResourceResult.cc b/mse/src/model/ListGatewayAuthConsumerResourceResult.cc new file mode 100644 index 000000000..2ff59f73e --- /dev/null +++ b/mse/src/model/ListGatewayAuthConsumerResourceResult.cc @@ -0,0 +1,127 @@ +/* + * 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; + +ListGatewayAuthConsumerResourceResult::ListGatewayAuthConsumerResourceResult() : + ServiceResult() +{} + +ListGatewayAuthConsumerResourceResult::ListGatewayAuthConsumerResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGatewayAuthConsumerResourceResult::~ListGatewayAuthConsumerResourceResult() +{} + +void ListGatewayAuthConsumerResourceResult::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"]["Consumers"]; + for (auto dataNodeResultConsumers : allResultNode) + { + Data::Consumers consumersObject; + if(!dataNodeResultConsumers["Id"].isNull()) + consumersObject.id = std::stol(dataNodeResultConsumers["Id"].asString()); + if(!dataNodeResultConsumers["ConsumerId"].isNull()) + consumersObject.consumerId = std::stol(dataNodeResultConsumers["ConsumerId"].asString()); + if(!dataNodeResultConsumers["RouteId"].isNull()) + consumersObject.routeId = std::stol(dataNodeResultConsumers["RouteId"].asString()); + if(!dataNodeResultConsumers["RouteName"].isNull()) + consumersObject.routeName = dataNodeResultConsumers["RouteName"].asString(); + if(!dataNodeResultConsumers["ResourceStatus"].isNull()) + consumersObject.resourceStatus = dataNodeResultConsumers["ResourceStatus"].asString() == "true"; + if(!dataNodeResultConsumers["GatewayUniqueId"].isNull()) + consumersObject.gatewayUniqueId = dataNodeResultConsumers["GatewayUniqueId"].asString(); + if(!dataNodeResultConsumers["GmtCreate"].isNull()) + consumersObject.gmtCreate = dataNodeResultConsumers["GmtCreate"].asString(); + if(!dataNodeResultConsumers["GmtModified"].isNull()) + consumersObject.gmtModified = dataNodeResultConsumers["GmtModified"].asString(); + data_.result.push_back(consumersObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string ListGatewayAuthConsumerResourceResult::getMessage()const +{ + return message_; +} + +int ListGatewayAuthConsumerResourceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListGatewayAuthConsumerResourceResult::Data ListGatewayAuthConsumerResourceResult::getData()const +{ + return data_; +} + +std::string ListGatewayAuthConsumerResourceResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListGatewayAuthConsumerResourceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListGatewayAuthConsumerResourceResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int ListGatewayAuthConsumerResourceResult::getCode()const +{ + return code_; +} + +bool ListGatewayAuthConsumerResourceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListGatewayAuthConsumerResult.cc b/mse/src/model/ListGatewayAuthConsumerResult.cc new file mode 100644 index 000000000..4fbc06780 --- /dev/null +++ b/mse/src/model/ListGatewayAuthConsumerResult.cc @@ -0,0 +1,129 @@ +/* + * 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; + +ListGatewayAuthConsumerResult::ListGatewayAuthConsumerResult() : + ServiceResult() +{} + +ListGatewayAuthConsumerResult::ListGatewayAuthConsumerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGatewayAuthConsumerResult::~ListGatewayAuthConsumerResult() +{} + +void ListGatewayAuthConsumerResult::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"]["Consumers"]; + for (auto dataNodeResultConsumers : allResultNode) + { + Data::Consumers consumersObject; + if(!dataNodeResultConsumers["Id"].isNull()) + consumersObject.id = std::stol(dataNodeResultConsumers["Id"].asString()); + if(!dataNodeResultConsumers["Name"].isNull()) + consumersObject.name = dataNodeResultConsumers["Name"].asString(); + if(!dataNodeResultConsumers["ConsumerStatus"].isNull()) + consumersObject.consumerStatus = dataNodeResultConsumers["ConsumerStatus"].asString() == "true"; + if(!dataNodeResultConsumers["PrimaryUser"].isNull()) + consumersObject.primaryUser = dataNodeResultConsumers["PrimaryUser"].asString(); + if(!dataNodeResultConsumers["GatewayUniqueId"].isNull()) + consumersObject.gatewayUniqueId = dataNodeResultConsumers["GatewayUniqueId"].asString(); + if(!dataNodeResultConsumers["Type"].isNull()) + consumersObject.type = dataNodeResultConsumers["Type"].asString(); + if(!dataNodeResultConsumers["Description"].isNull()) + consumersObject.description = dataNodeResultConsumers["Description"].asString(); + if(!dataNodeResultConsumers["GmtCreate"].isNull()) + consumersObject.gmtCreate = dataNodeResultConsumers["GmtCreate"].asString(); + if(!dataNodeResultConsumers["GmtModified"].isNull()) + consumersObject.gmtModified = dataNodeResultConsumers["GmtModified"].asString(); + data_.result.push_back(consumersObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string ListGatewayAuthConsumerResult::getMessage()const +{ + return message_; +} + +int ListGatewayAuthConsumerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListGatewayAuthConsumerResult::Data ListGatewayAuthConsumerResult::getData()const +{ + return data_; +} + +std::string ListGatewayAuthConsumerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListGatewayAuthConsumerResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListGatewayAuthConsumerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int ListGatewayAuthConsumerResult::getCode()const +{ + return code_; +} + +bool ListGatewayAuthConsumerResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListGatewayResult.cc b/mse/src/model/ListGatewayResult.cc index 9f0f334e9..7b0e1693c 100644 --- a/mse/src/model/ListGatewayResult.cc +++ b/mse/src/model/ListGatewayResult.cc @@ -108,6 +108,16 @@ void ListGatewayResult::parse(const std::string &payload) gatewaysObject.mseTag = dataNodeResultGateways["MseTag"].asString(); if(!dataNodeResultGateways["ResourceGroupId"].isNull()) gatewaysObject.resourceGroupId = dataNodeResultGateways["ResourceGroupId"].asString(); + if(!dataNodeResultGateways["TotalReplica"].isNull()) + gatewaysObject.totalReplica = std::stoi(dataNodeResultGateways["TotalReplica"].asString()); + if(!dataNodeResultGateways["Elastic"].isNull()) + gatewaysObject.elastic = dataNodeResultGateways["Elastic"].asString() == "true"; + if(!dataNodeResultGateways["ElasticReplica"].isNull()) + gatewaysObject.elasticReplica = std::stoi(dataNodeResultGateways["ElasticReplica"].asString()); + if(!dataNodeResultGateways["ElasticType"].isNull()) + gatewaysObject.elasticType = dataNodeResultGateways["ElasticType"].asString(); + if(!dataNodeResultGateways["ElasticInstanceId"].isNull()) + gatewaysObject.elasticInstanceId = dataNodeResultGateways["ElasticInstanceId"].asString(); auto allSlbNode = dataNodeResultGateways["Slb"]["slbItem"]; for (auto dataNodeResultGatewaysSlbslbItem : allSlbNode) { @@ -159,6 +169,25 @@ void ListGatewayResult::parse(const std::string &payload) gatewaysObject.initConfig.enableWaf = initConfigNode["EnableWaf"].asString() == "true"; if(!initConfigNode["SupportWaf"].isNull()) gatewaysObject.initConfig.supportWaf = initConfigNode["SupportWaf"].asString() == "true"; + auto elasticPolicyNode = value["ElasticPolicy"]; + if(!elasticPolicyNode["Elastic"].isNull()) + gatewaysObject.elasticPolicy.elastic = elasticPolicyNode["Elastic"].asString() == "true"; + if(!elasticPolicyNode["MaxReplica"].isNull()) + gatewaysObject.elasticPolicy.maxReplica = std::stoi(elasticPolicyNode["MaxReplica"].asString()); + if(!elasticPolicyNode["ElasticType"].isNull()) + gatewaysObject.elasticPolicy.elasticType = elasticPolicyNode["ElasticType"].asString(); + auto allTimePolicyListNode = elasticPolicyNode["TimePolicyList"]["timePolicyListItem"]; + for (auto elasticPolicyNodeTimePolicyListtimePolicyListItem : allTimePolicyListNode) + { + Data::Gateways::ElasticPolicy::TimePolicyListItem timePolicyListItemObject; + if(!elasticPolicyNodeTimePolicyListtimePolicyListItem["DesiredReplica"].isNull()) + timePolicyListItemObject.desiredReplica = std::stoi(elasticPolicyNodeTimePolicyListtimePolicyListItem["DesiredReplica"].asString()); + if(!elasticPolicyNodeTimePolicyListtimePolicyListItem["StartTime"].isNull()) + timePolicyListItemObject.startTime = elasticPolicyNodeTimePolicyListtimePolicyListItem["StartTime"].asString(); + if(!elasticPolicyNodeTimePolicyListtimePolicyListItem["EndTime"].isNull()) + timePolicyListItemObject.endTime = elasticPolicyNodeTimePolicyListtimePolicyListItem["EndTime"].asString(); + gatewaysObject.elasticPolicy.timePolicyList.push_back(timePolicyListItemObject); + } data_.result.push_back(gatewaysObject); } if(!value["HttpStatusCode"].isNull()) diff --git a/mse/src/model/ListGatewayRouteOnAuthRequest.cc b/mse/src/model/ListGatewayRouteOnAuthRequest.cc new file mode 100644 index 000000000..dba685514 --- /dev/null +++ b/mse/src/model/ListGatewayRouteOnAuthRequest.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::ListGatewayRouteOnAuthRequest; + +ListGatewayRouteOnAuthRequest::ListGatewayRouteOnAuthRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListGatewayRouteOnAuth") { + setMethod(HttpRequest::Method::Post); +} + +ListGatewayRouteOnAuthRequest::~ListGatewayRouteOnAuthRequest() {} + +std::string ListGatewayRouteOnAuthRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListGatewayRouteOnAuthRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListGatewayRouteOnAuthRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void ListGatewayRouteOnAuthRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string ListGatewayRouteOnAuthRequest::getType() const { + return type_; +} + +void ListGatewayRouteOnAuthRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string ListGatewayRouteOnAuthRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListGatewayRouteOnAuthRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListGatewayRouteOnAuthResult.cc b/mse/src/model/ListGatewayRouteOnAuthResult.cc new file mode 100644 index 000000000..a8fbe0509 --- /dev/null +++ b/mse/src/model/ListGatewayRouteOnAuthResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +ListGatewayRouteOnAuthResult::ListGatewayRouteOnAuthResult() : + ServiceResult() +{} + +ListGatewayRouteOnAuthResult::ListGatewayRouteOnAuthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGatewayRouteOnAuthResult::~ListGatewayRouteOnAuthResult() +{} + +void ListGatewayRouteOnAuthResult::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["Id"].isNull()) + dataObject.id = std::stoi(valueDatadataItem["Id"].asString()); + if(!valueDatadataItem["Name"].isNull()) + dataObject.name = valueDatadataItem["Name"].asString(); + if(!valueDatadataItem["GatewayUniqueId"].isNull()) + dataObject.gatewayUniqueId = valueDatadataItem["GatewayUniqueId"].asString(); + if(!valueDatadataItem["GatewayId"].isNull()) + dataObject.gatewayId = valueDatadataItem["GatewayId"].asString(); + if(!valueDatadataItem["DomainId"].isNull()) + dataObject.domainId = std::stol(valueDatadataItem["DomainId"].asString()); + if(!valueDatadataItem["DomainName"].isNull()) + dataObject.domainName = valueDatadataItem["DomainName"].asString(); + auto routePredicatesNode = value["RoutePredicates"]; + auto pathPredicatesNode = routePredicatesNode["PathPredicates"]; + if(!pathPredicatesNode["Path"].isNull()) + dataObject.routePredicates.pathPredicates.path = pathPredicatesNode["Path"].asString(); + if(!pathPredicatesNode["Type"].isNull()) + dataObject.routePredicates.pathPredicates.type = pathPredicatesNode["Type"].asString(); + auto allDomainIdList = value["DomainIdList"]["DomainIdList"]; + for (auto value : allDomainIdList) + dataObject.domainIdList.push_back(value.asString()); + auto allDomainNameList = value["DomainNameList"]["DomainNameList"]; + for (auto value : allDomainNameList) + dataObject.domainNameList.push_back(value.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 ListGatewayRouteOnAuthResult::getMessage()const +{ + return message_; +} + +int ListGatewayRouteOnAuthResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListGatewayRouteOnAuthResult::getData()const +{ + return data_; +} + +int ListGatewayRouteOnAuthResult::getCode()const +{ + return code_; +} + +bool ListGatewayRouteOnAuthResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListGatewaySlbResult.cc b/mse/src/model/ListGatewaySlbResult.cc index 558923597..72843051a 100644 --- a/mse/src/model/ListGatewaySlbResult.cc +++ b/mse/src/model/ListGatewaySlbResult.cc @@ -75,6 +75,22 @@ void ListGatewaySlbResult::parse(const std::string &payload) dataObject.editEnable = valueDataSources["EditEnable"].asString() == "true"; if(!valueDataSources["HttpsVServerGroupId"].isNull()) dataObject.httpsVServerGroupId = valueDataSources["HttpsVServerGroupId"].asString(); + if(!valueDataSources["VsMetaInfo"].isNull()) + dataObject.vsMetaInfo = valueDataSources["VsMetaInfo"].asString(); + auto allVServiceListNode = valueDataSources["VServiceList"]["service"]; + for (auto valueDataSourcesVServiceListservice : allVServiceListNode) + { + Sources::Service vServiceListObject; + if(!valueDataSourcesVServiceListservice["Port"].isNull()) + vServiceListObject.port = valueDataSourcesVServiceListservice["Port"].asString(); + if(!valueDataSourcesVServiceListservice["Protocol"].isNull()) + vServiceListObject.protocol = valueDataSourcesVServiceListservice["Protocol"].asString(); + if(!valueDataSourcesVServiceListservice["VServerGroupId"].isNull()) + vServiceListObject.vServerGroupId = valueDataSourcesVServiceListservice["VServerGroupId"].asString(); + if(!valueDataSourcesVServiceListservice["VServerGroupName"].isNull()) + vServiceListObject.vServerGroupName = valueDataSourcesVServiceListservice["VServerGroupName"].asString(); + dataObject.vServiceList.push_back(vServiceListObject); + } data_.push_back(dataObject); } if(!value["HttpStatusCode"].isNull()) diff --git a/mse/src/model/ListInstanceCountRequest.cc b/mse/src/model/ListInstanceCountRequest.cc index cda90e9c0..8b8b0dd02 100644 --- a/mse/src/model/ListInstanceCountRequest.cc +++ b/mse/src/model/ListInstanceCountRequest.cc @@ -34,15 +34,6 @@ void ListInstanceCountRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } -std::string ListInstanceCountRequest::getClusterType() const { - return clusterType_; -} - -void ListInstanceCountRequest::setClusterType(const std::string &clusterType) { - clusterType_ = clusterType; - setParameter(std::string("ClusterType"), clusterType); -} - std::string ListInstanceCountRequest::getRegionId() const { return regionId_; } @@ -52,15 +43,6 @@ void ListInstanceCountRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } -std::string ListInstanceCountRequest::getMseVersion() const { - return mseVersion_; -} - -void ListInstanceCountRequest::setMseVersion(const std::string &mseVersion) { - mseVersion_ = mseVersion; - setParameter(std::string("MseVersion"), mseVersion); -} - std::string ListInstanceCountRequest::getRequestPars() const { return requestPars_; } @@ -70,6 +52,24 @@ void ListInstanceCountRequest::setRequestPars(const std::string &requestPars) { setParameter(std::string("RequestPars"), requestPars); } +std::string ListInstanceCountRequest::getClusterType() const { + return clusterType_; +} + +void ListInstanceCountRequest::setClusterType(const std::string &clusterType) { + clusterType_ = clusterType; + setParameter(std::string("ClusterType"), clusterType); +} + +std::string ListInstanceCountRequest::getMseVersion() const { + return mseVersion_; +} + +void ListInstanceCountRequest::setMseVersion(const std::string &mseVersion) { + mseVersion_ = mseVersion; + setParameter(std::string("MseVersion"), mseVersion); +} + std::string ListInstanceCountRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ListListenersByConfigRequest.cc b/mse/src/model/ListListenersByConfigRequest.cc index 33589399a..5a24af0bc 100644 --- a/mse/src/model/ListListenersByConfigRequest.cc +++ b/mse/src/model/ListListenersByConfigRequest.cc @@ -34,24 +34,6 @@ void ListListenersByConfigRequest::setMseSessionId(const std::string &mseSession setParameter(std::string("MseSessionId"), mseSessionId); } -std::string ListListenersByConfigRequest::getInstanceId() const { - return instanceId_; -} - -void ListListenersByConfigRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -std::string ListListenersByConfigRequest::getDataId() const { - return dataId_; -} - -void ListListenersByConfigRequest::setDataId(const std::string &dataId) { - dataId_ = dataId; - setParameter(std::string("DataId"), dataId); -} - std::string ListListenersByConfigRequest::getNamespaceId() const { return namespaceId_; } @@ -70,15 +52,6 @@ void ListListenersByConfigRequest::setRequestPars(const std::string &requestPars setParameter(std::string("RequestPars"), requestPars); } -std::string ListListenersByConfigRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void ListListenersByConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - std::string ListListenersByConfigRequest::getGroup() const { return group_; } @@ -88,3 +61,30 @@ void ListListenersByConfigRequest::setGroup(const std::string &group) { setParameter(std::string("Group"), group); } +std::string ListListenersByConfigRequest::getInstanceId() const { + return instanceId_; +} + +void ListListenersByConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListListenersByConfigRequest::getDataId() const { + return dataId_; +} + +void ListListenersByConfigRequest::setDataId(const std::string &dataId) { + dataId_ = dataId; + setParameter(std::string("DataId"), dataId); +} + +std::string ListListenersByConfigRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListListenersByConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListListenersByIpRequest.cc b/mse/src/model/ListListenersByIpRequest.cc index 22eca72b5..dd237c4df 100644 --- a/mse/src/model/ListListenersByIpRequest.cc +++ b/mse/src/model/ListListenersByIpRequest.cc @@ -34,24 +34,6 @@ void ListListenersByIpRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } -std::string ListListenersByIpRequest::getIp() const { - return ip_; -} - -void ListListenersByIpRequest::setIp(const std::string &ip) { - ip_ = ip; - setParameter(std::string("Ip"), ip); -} - -std::string ListListenersByIpRequest::getInstanceId() const { - return instanceId_; -} - -void ListListenersByIpRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - std::string ListListenersByIpRequest::getNamespaceId() const { return namespaceId_; } @@ -70,6 +52,24 @@ void ListListenersByIpRequest::setRequestPars(const std::string &requestPars) { setParameter(std::string("RequestPars"), requestPars); } +std::string ListListenersByIpRequest::getIp() const { + return ip_; +} + +void ListListenersByIpRequest::setIp(const std::string &ip) { + ip_ = ip; + setParameter(std::string("Ip"), ip); +} + +std::string ListListenersByIpRequest::getInstanceId() const { + return instanceId_; +} + +void ListListenersByIpRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + std::string ListListenersByIpRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ListMigrationTaskRequest.cc b/mse/src/model/ListMigrationTaskRequest.cc index 889e863e1..476b5f2b6 100644 --- a/mse/src/model/ListMigrationTaskRequest.cc +++ b/mse/src/model/ListMigrationTaskRequest.cc @@ -61,15 +61,6 @@ void ListMigrationTaskRequest::setPageSize(long pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } -std::string ListMigrationTaskRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void ListMigrationTaskRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - std::string ListMigrationTaskRequest::getOriginInstanceName() const { return originInstanceName_; } @@ -79,3 +70,12 @@ void ListMigrationTaskRequest::setOriginInstanceName(const std::string &originIn setParameter(std::string("OriginInstanceName"), originInstanceName); } +std::string ListMigrationTaskRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListMigrationTaskRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListNacosHistoryConfigsRequest.cc b/mse/src/model/ListNacosHistoryConfigsRequest.cc index c5ab83025..8aa634ba4 100644 --- a/mse/src/model/ListNacosHistoryConfigsRequest.cc +++ b/mse/src/model/ListNacosHistoryConfigsRequest.cc @@ -43,24 +43,6 @@ void ListNacosHistoryConfigsRequest::setPageNum(int pageNum) { setParameter(std::string("PageNum"), std::to_string(pageNum)); } -std::string ListNacosHistoryConfigsRequest::getInstanceId() const { - return instanceId_; -} - -void ListNacosHistoryConfigsRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -std::string ListNacosHistoryConfigsRequest::getDataId() const { - return dataId_; -} - -void ListNacosHistoryConfigsRequest::setDataId(const std::string &dataId) { - dataId_ = dataId; - setParameter(std::string("DataId"), dataId); -} - std::string ListNacosHistoryConfigsRequest::getRegionId() const { return regionId_; } @@ -97,15 +79,6 @@ void ListNacosHistoryConfigsRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } -std::string ListNacosHistoryConfigsRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void ListNacosHistoryConfigsRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - std::string ListNacosHistoryConfigsRequest::getGroup() const { return group_; } @@ -115,3 +88,30 @@ void ListNacosHistoryConfigsRequest::setGroup(const std::string &group) { setParameter(std::string("Group"), group); } +std::string ListNacosHistoryConfigsRequest::getInstanceId() const { + return instanceId_; +} + +void ListNacosHistoryConfigsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListNacosHistoryConfigsRequest::getDataId() const { + return dataId_; +} + +void ListNacosHistoryConfigsRequest::setDataId(const std::string &dataId) { + dataId_ = dataId; + setParameter(std::string("DataId"), dataId); +} + +std::string ListNacosHistoryConfigsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListNacosHistoryConfigsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListNamingTrackRequest.cc b/mse/src/model/ListNamingTrackRequest.cc index a2ab948c3..48bec27bf 100644 --- a/mse/src/model/ListNamingTrackRequest.cc +++ b/mse/src/model/ListNamingTrackRequest.cc @@ -70,6 +70,33 @@ void ListNamingTrackRequest::setRequestPars(const std::string &requestPars) { setParameter(std::string("RequestPars"), requestPars); } +std::string ListNamingTrackRequest::getGroup() const { + return group_; +} + +void ListNamingTrackRequest::setGroup(const std::string &group) { + group_ = group; + setParameter(std::string("Group"), group); +} + +std::string ListNamingTrackRequest::getIp() const { + return ip_; +} + +void ListNamingTrackRequest::setIp(const std::string &ip) { + ip_ = ip; + setParameter(std::string("Ip"), ip); +} + +std::string ListNamingTrackRequest::getInstanceId() const { + return instanceId_; +} + +void ListNamingTrackRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + long ListNamingTrackRequest::getEndTs() const { return endTs_; } @@ -97,24 +124,6 @@ void ListNamingTrackRequest::setServiceName(const std::string &serviceName) { setParameter(std::string("ServiceName"), serviceName); } -std::string ListNamingTrackRequest::getGroup() const { - return group_; -} - -void ListNamingTrackRequest::setGroup(const std::string &group) { - group_ = group; - setParameter(std::string("Group"), group); -} - -std::string ListNamingTrackRequest::getIp() const { - return ip_; -} - -void ListNamingTrackRequest::setIp(const std::string &ip) { - ip_ = ip; - setParameter(std::string("Ip"), ip); -} - bool ListNamingTrackRequest::getReverse() const { return reverse_; } @@ -124,15 +133,6 @@ void ListNamingTrackRequest::setReverse(bool reverse) { setParameter(std::string("Reverse"), reverse ? "true" : "false"); } -std::string ListNamingTrackRequest::getInstanceId() const { - return instanceId_; -} - -void ListNamingTrackRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - std::string ListNamingTrackRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ListTagResourcesRequest.cc b/mse/src/model/ListTagResourcesRequest.cc index f3d00d21a..d2826721b 100644 --- a/mse/src/model/ListTagResourcesRequest.cc +++ b/mse/src/model/ListTagResourcesRequest.cc @@ -34,23 +34,6 @@ void ListTagResourcesRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } -std::vector ListTagResourcesRequest::getResourceId() const { - return resourceId_; -} - -void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { - resourceId_ = resourceId; -} - -std::string ListTagResourcesRequest::getResourceType() const { - return resourceType_; -} - -void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - std::string ListTagResourcesRequest::getRegionId() const { return regionId_; } @@ -69,15 +52,6 @@ void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { setParameter(std::string("NextToken"), nextToken); } -std::string ListTagResourcesRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void ListTagResourcesRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - std::vector ListTagResourcesRequest::getTag() const { return tag_; } @@ -92,3 +66,29 @@ void ListTagResourcesRequest::setTag(const std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ListTagResourcesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListTagResourcesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListZkTrackRequest.cc b/mse/src/model/ListZkTrackRequest.cc index 6d6764f2e..f8ea67daf 100644 --- a/mse/src/model/ListZkTrackRequest.cc +++ b/mse/src/model/ListZkTrackRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListZkTrackRequest; ListZkTrackRequest::ListZkTrackRequest() : RpcServiceRequest("mse", "2019-05-31", "ListZkTrack") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListZkTrackRequest::~ListZkTrackRequest() {} diff --git a/mse/src/model/ListZnodeChildrenRequest.cc b/mse/src/model/ListZnodeChildrenRequest.cc index f1d7a1b14..db6ee43b9 100644 --- a/mse/src/model/ListZnodeChildrenRequest.cc +++ b/mse/src/model/ListZnodeChildrenRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListZnodeChildrenRequest; ListZnodeChildrenRequest::ListZnodeChildrenRequest() : RpcServiceRequest("mse", "2019-05-31", "ListZnodeChildren") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListZnodeChildrenRequest::~ListZnodeChildrenRequest() {} @@ -34,15 +34,6 @@ void ListZnodeChildrenRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } -std::string ListZnodeChildrenRequest::getClusterId() const { - return clusterId_; -} - -void ListZnodeChildrenRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - std::string ListZnodeChildrenRequest::getPath() const { return path_; } @@ -52,6 +43,15 @@ void ListZnodeChildrenRequest::setPath(const std::string &path) { setParameter(std::string("Path"), path); } +std::string ListZnodeChildrenRequest::getClusterId() const { + return clusterId_; +} + +void ListZnodeChildrenRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + std::string ListZnodeChildrenRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ModifyGovernanceKubernetesClusterRequest.cc b/mse/src/model/ModifyGovernanceKubernetesClusterRequest.cc index 042750337..aec3e1ba5 100644 --- a/mse/src/model/ModifyGovernanceKubernetesClusterRequest.cc +++ b/mse/src/model/ModifyGovernanceKubernetesClusterRequest.cc @@ -34,6 +34,15 @@ void ModifyGovernanceKubernetesClusterRequest::setMseSessionId(const std::string setParameter(std::string("MseSessionId"), mseSessionId); } +std::string ModifyGovernanceKubernetesClusterRequest::getRegionId() const { + return regionId_; +} + +void ModifyGovernanceKubernetesClusterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + std::string ModifyGovernanceKubernetesClusterRequest::getNamespaceInfos() const { return namespaceInfos_; } @@ -52,15 +61,6 @@ void ModifyGovernanceKubernetesClusterRequest::setClusterId(const std::string &c setParameter(std::string("ClusterId"), clusterId); } -std::string ModifyGovernanceKubernetesClusterRequest::getRegionId() const { - return regionId_; -} - -void ModifyGovernanceKubernetesClusterRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string ModifyGovernanceKubernetesClusterRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/ModifyLosslessRuleRequest.cc b/mse/src/model/ModifyLosslessRuleRequest.cc index f9e5e804c..77b9f53fa 100644 --- a/mse/src/model/ModifyLosslessRuleRequest.cc +++ b/mse/src/model/ModifyLosslessRuleRequest.cc @@ -34,33 +34,6 @@ void ModifyLosslessRuleRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } -long ModifyLosslessRuleRequest::getDelayTime() const { - return delayTime_; -} - -void ModifyLosslessRuleRequest::setDelayTime(long delayTime) { - delayTime_ = delayTime; - setParameter(std::string("DelayTime"), std::to_string(delayTime)); -} - -std::string ModifyLosslessRuleRequest::getSource() const { - return source_; -} - -void ModifyLosslessRuleRequest::setSource(const std::string &source) { - source_ = source; - setParameter(std::string("Source"), source); -} - -long ModifyLosslessRuleRequest::getWarmupTime() const { - return warmupTime_; -} - -void ModifyLosslessRuleRequest::setWarmupTime(long warmupTime) { - warmupTime_ = warmupTime; - setParameter(std::string("WarmupTime"), std::to_string(warmupTime)); -} - std::string ModifyLosslessRuleRequest::getAppName() const { return appName_; } @@ -70,24 +43,6 @@ void ModifyLosslessRuleRequest::setAppName(const std::string &appName) { setParameter(std::string("AppName"), appName); } -bool ModifyLosslessRuleRequest::getRelated() const { - return related_; -} - -void ModifyLosslessRuleRequest::setRelated(bool related) { - related_ = related; - setParameter(std::string("Related"), related ? "true" : "false"); -} - -std::string ModifyLosslessRuleRequest::getRegionId() const { - return regionId_; -} - -void ModifyLosslessRuleRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - bool ModifyLosslessRuleRequest::getEnable() const { return enable_; } @@ -106,13 +61,49 @@ void ModifyLosslessRuleRequest::setAligned(bool aligned) { setParameter(std::string("Aligned"), aligned ? "true" : "false"); } -int ModifyLosslessRuleRequest::getShutdownWaitSeconds() const { - return shutdownWaitSeconds_; +int ModifyLosslessRuleRequest::getFuncType() const { + return funcType_; } -void ModifyLosslessRuleRequest::setShutdownWaitSeconds(int shutdownWaitSeconds) { - shutdownWaitSeconds_ = shutdownWaitSeconds; - setParameter(std::string("ShutdownWaitSeconds"), std::to_string(shutdownWaitSeconds)); +void ModifyLosslessRuleRequest::setFuncType(int funcType) { + funcType_ = funcType; + setParameter(std::string("FuncType"), std::to_string(funcType)); +} + +int ModifyLosslessRuleRequest::getDelayTime() const { + return delayTime_; +} + +void ModifyLosslessRuleRequest::setDelayTime(int delayTime) { + delayTime_ = delayTime; + setParameter(std::string("DelayTime"), std::to_string(delayTime)); +} + +int ModifyLosslessRuleRequest::getWarmupTime() const { + return warmupTime_; +} + +void ModifyLosslessRuleRequest::setWarmupTime(int warmupTime) { + warmupTime_ = warmupTime; + setParameter(std::string("WarmupTime"), std::to_string(warmupTime)); +} + +bool ModifyLosslessRuleRequest::getRelated() const { + return related_; +} + +void ModifyLosslessRuleRequest::setRelated(bool related) { + related_ = related; + setParameter(std::string("Related"), related ? "true" : "false"); +} + +std::string ModifyLosslessRuleRequest::getRegionId() const { + return regionId_; +} + +void ModifyLosslessRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } bool ModifyLosslessRuleRequest::getNotice() const { @@ -133,15 +124,6 @@ void ModifyLosslessRuleRequest::setLossLessDetail(bool lossLessDetail) { setParameter(std::string("LossLessDetail"), lossLessDetail ? "true" : "false"); } -long ModifyLosslessRuleRequest::getFuncType() const { - return funcType_; -} - -void ModifyLosslessRuleRequest::setFuncType(long funcType) { - funcType_ = funcType; - setParameter(std::string("FuncType"), std::to_string(funcType)); -} - std::string ModifyLosslessRuleRequest::getAppId() const { return appId_; } diff --git a/mse/src/model/ModifyLosslessRuleResult.cc b/mse/src/model/ModifyLosslessRuleResult.cc index 1da643d53..7e37e02bf 100644 --- a/mse/src/model/ModifyLosslessRuleResult.cc +++ b/mse/src/model/ModifyLosslessRuleResult.cc @@ -39,34 +39,6 @@ void ModifyLosslessRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - if(!value["HttpCode"].isNull()) - httpCode_ = value["HttpCode"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; } -std::string ModifyLosslessRuleResult::getHttpCode()const -{ - return httpCode_; -} - -std::string ModifyLosslessRuleResult::getMessage()const -{ - return message_; -} - -std::string ModifyLosslessRuleResult::getErrorCode()const -{ - return errorCode_; -} - -bool ModifyLosslessRuleResult::getSuccess()const -{ - return success_; -} - diff --git a/mse/src/model/OrderClusterHealthCheckRiskNoticeRequest.cc b/mse/src/model/OrderClusterHealthCheckRiskNoticeRequest.cc index 194af8a83..37addeded 100644 --- a/mse/src/model/OrderClusterHealthCheckRiskNoticeRequest.cc +++ b/mse/src/model/OrderClusterHealthCheckRiskNoticeRequest.cc @@ -34,6 +34,24 @@ void OrderClusterHealthCheckRiskNoticeRequest::setMseSessionId(const std::string setParameter(std::string("MseSessionId"), mseSessionId); } +std::string OrderClusterHealthCheckRiskNoticeRequest::getRegionId() const { + return regionId_; +} + +void OrderClusterHealthCheckRiskNoticeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string OrderClusterHealthCheckRiskNoticeRequest::getRequestPars() const { + return requestPars_; +} + +void OrderClusterHealthCheckRiskNoticeRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + bool OrderClusterHealthCheckRiskNoticeRequest::getMute() const { return mute_; } @@ -61,15 +79,6 @@ void OrderClusterHealthCheckRiskNoticeRequest::setNoticeType(const std::string & setParameter(std::string("NoticeType"), noticeType); } -std::string OrderClusterHealthCheckRiskNoticeRequest::getRegionId() const { - return regionId_; -} - -void OrderClusterHealthCheckRiskNoticeRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string OrderClusterHealthCheckRiskNoticeRequest::getRiskCode() const { return riskCode_; } @@ -79,15 +88,6 @@ void OrderClusterHealthCheckRiskNoticeRequest::setRiskCode(const std::string &ri setParameter(std::string("RiskCode"), riskCode); } -std::string OrderClusterHealthCheckRiskNoticeRequest::getRequestPars() const { - return requestPars_; -} - -void OrderClusterHealthCheckRiskNoticeRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - std::string OrderClusterHealthCheckRiskNoticeRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/QueryAllSwimmingLaneGroupResult.cc b/mse/src/model/QueryAllSwimmingLaneGroupResult.cc index 5b908df3a..c215404f5 100644 --- a/mse/src/model/QueryAllSwimmingLaneGroupResult.cc +++ b/mse/src/model/QueryAllSwimmingLaneGroupResult.cc @@ -39,6 +39,116 @@ void QueryAllSwimmingLaneGroupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["SwimmingLaneGroup"]; + for (auto valueDataSwimmingLaneGroup : allDataNode) + { + SwimmingLaneGroup dataObject; + if(!valueDataSwimmingLaneGroup["Name"].isNull()) + dataObject.name = valueDataSwimmingLaneGroup["Name"].asString(); + if(!valueDataSwimmingLaneGroup["name"].isNull()) + dataObject.name1 = valueDataSwimmingLaneGroup["name"].asString(); + if(!valueDataSwimmingLaneGroup["dbGrayEnable"].isNull()) + dataObject.dbGrayEnable = valueDataSwimmingLaneGroup["dbGrayEnable"].asString(); + if(!valueDataSwimmingLaneGroup["DbGrayEnable"].isNull()) + dataObject.dbGrayEnable2 = valueDataSwimmingLaneGroup["DbGrayEnable"].asString(); + if(!valueDataSwimmingLaneGroup["source"].isNull()) + dataObject.source = valueDataSwimmingLaneGroup["source"].asString(); + if(!valueDataSwimmingLaneGroup["Source"].isNull()) + dataObject.source3 = valueDataSwimmingLaneGroup["Source"].asString(); + if(!valueDataSwimmingLaneGroup["userId"].isNull()) + dataObject.userId = valueDataSwimmingLaneGroup["userId"].asString(); + if(!valueDataSwimmingLaneGroup["UserId"].isNull()) + dataObject.userId4 = valueDataSwimmingLaneGroup["UserId"].asString(); + if(!valueDataSwimmingLaneGroup["MessageQueueFilterSide"].isNull()) + dataObject.messageQueueFilterSide = valueDataSwimmingLaneGroup["MessageQueueFilterSide"].asString(); + if(!valueDataSwimmingLaneGroup["messageQueueFilterSide"].isNull()) + dataObject.messageQueueFilterSide5 = valueDataSwimmingLaneGroup["messageQueueFilterSide"].asString(); + if(!valueDataSwimmingLaneGroup["appIds"].isNull()) + dataObject.appIds = valueDataSwimmingLaneGroup["appIds"].asString(); + if(!valueDataSwimmingLaneGroup["AppIds"].isNull()) + dataObject.appIds6 = valueDataSwimmingLaneGroup["AppIds"].asString(); + if(!valueDataSwimmingLaneGroup["enable"].isNull()) + dataObject.enable = valueDataSwimmingLaneGroup["enable"].asString(); + if(!valueDataSwimmingLaneGroup["Enable"].isNull()) + dataObject.enable7 = valueDataSwimmingLaneGroup["Enable"].asString(); + if(!valueDataSwimmingLaneGroup["Namespace"].isNull()) + dataObject._namespace = valueDataSwimmingLaneGroup["Namespace"].asString(); + if(!valueDataSwimmingLaneGroup["namespace"].isNull()) + dataObject._namespace8 = valueDataSwimmingLaneGroup["namespace"].asString(); + if(!valueDataSwimmingLaneGroup["RecordCanaryDetail"].isNull()) + dataObject.recordCanaryDetail = valueDataSwimmingLaneGroup["RecordCanaryDetail"].asString() == "true"; + if(!valueDataSwimmingLaneGroup["id"].isNull()) + dataObject.id = std::stol(valueDataSwimmingLaneGroup["id"].asString()); + if(!valueDataSwimmingLaneGroup["Id"].isNull()) + dataObject.id9 = std::stol(valueDataSwimmingLaneGroup["Id"].asString()); + if(!valueDataSwimmingLaneGroup["entryApp"].isNull()) + dataObject.entryApp = valueDataSwimmingLaneGroup["entryApp"].asString(); + if(!valueDataSwimmingLaneGroup["EntryApp"].isNull()) + dataObject.entryApp10 = valueDataSwimmingLaneGroup["EntryApp"].asString(); + if(!valueDataSwimmingLaneGroup["region"].isNull()) + dataObject.region = valueDataSwimmingLaneGroup["region"].asString(); + if(!valueDataSwimmingLaneGroup["Region"].isNull()) + dataObject.region11 = valueDataSwimmingLaneGroup["Region"].asString(); + if(!valueDataSwimmingLaneGroup["MessageQueueGrayEnable"].isNull()) + dataObject.messageQueueGrayEnable = valueDataSwimmingLaneGroup["MessageQueueGrayEnable"].asString() == "true"; + if(!valueDataSwimmingLaneGroup["messageQueueGrayEnable"].isNull()) + dataObject.messageQueueGrayEnable12 = valueDataSwimmingLaneGroup["messageQueueGrayEnable"].asString() == "true"; + if(!valueDataSwimmingLaneGroup["status"].isNull()) + dataObject.status = std::stoi(valueDataSwimmingLaneGroup["status"].asString()); + if(!valueDataSwimmingLaneGroup["Status"].isNull()) + dataObject.status13 = std::stoi(valueDataSwimmingLaneGroup["Status"].asString()); + auto allApplicationList = value["applicationList"]["ApplicationList"]; + for (auto value : allApplicationList) + dataObject.applicationList.push_back(value.asString()); + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); } +std::string QueryAllSwimmingLaneGroupResult::getMessage()const +{ + return message_; +} + +int QueryAllSwimmingLaneGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector QueryAllSwimmingLaneGroupResult::getData()const +{ + return data_; +} + +std::string QueryAllSwimmingLaneGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string QueryAllSwimmingLaneGroupResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int QueryAllSwimmingLaneGroupResult::getCode()const +{ + return code_; +} + +bool QueryAllSwimmingLaneGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryAllSwimmingLaneRequest.cc b/mse/src/model/QueryAllSwimmingLaneRequest.cc index c2458ed57..f522a2f33 100644 --- a/mse/src/model/QueryAllSwimmingLaneRequest.cc +++ b/mse/src/model/QueryAllSwimmingLaneRequest.cc @@ -43,6 +43,15 @@ void QueryAllSwimmingLaneRequest::setGroupId(long groupId) { setParameter(std::string("GroupId"), std::to_string(groupId)); } +std::string QueryAllSwimmingLaneRequest::get_Namespace() const { + return _namespace_; +} + +void QueryAllSwimmingLaneRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + std::string QueryAllSwimmingLaneRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/QueryAllSwimmingLaneResult.cc b/mse/src/model/QueryAllSwimmingLaneResult.cc index b9b4e7e26..dbe2fb911 100644 --- a/mse/src/model/QueryAllSwimmingLaneResult.cc +++ b/mse/src/model/QueryAllSwimmingLaneResult.cc @@ -39,6 +39,124 @@ void QueryAllSwimmingLaneResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["SwimmingLaneGroup"]; + for (auto valueDataSwimmingLaneGroup : allDataNode) + { + SwimmingLaneGroup dataObject; + if(!valueDataSwimmingLaneGroup["Name"].isNull()) + dataObject.name = valueDataSwimmingLaneGroup["Name"].asString(); + if(!valueDataSwimmingLaneGroup["name"].isNull()) + dataObject.name1 = valueDataSwimmingLaneGroup["name"].asString(); + if(!valueDataSwimmingLaneGroup["userId"].isNull()) + dataObject.userId = valueDataSwimmingLaneGroup["userId"].asString(); + if(!valueDataSwimmingLaneGroup["UserId"].isNull()) + dataObject.userId2 = valueDataSwimmingLaneGroup["UserId"].asString(); + if(!valueDataSwimmingLaneGroup["MessageQueueFilterSide"].isNull()) + dataObject.messageQueueFilterSide = valueDataSwimmingLaneGroup["MessageQueueFilterSide"].asString(); + if(!valueDataSwimmingLaneGroup["enable"].isNull()) + dataObject.enable = valueDataSwimmingLaneGroup["enable"].asString(); + if(!valueDataSwimmingLaneGroup["Enable"].isNull()) + dataObject.enable3 = valueDataSwimmingLaneGroup["Enable"].asString(); + if(!valueDataSwimmingLaneGroup["Namespace"].isNull()) + dataObject._namespace = valueDataSwimmingLaneGroup["Namespace"].asString(); + if(!valueDataSwimmingLaneGroup["RecordCanaryDetail"].isNull()) + dataObject.recordCanaryDetail = valueDataSwimmingLaneGroup["RecordCanaryDetail"].asString() == "true"; + if(!valueDataSwimmingLaneGroup["id"].isNull()) + dataObject.id = std::stol(valueDataSwimmingLaneGroup["id"].asString()); + if(!valueDataSwimmingLaneGroup["Id"].isNull()) + dataObject.id4 = std::stol(valueDataSwimmingLaneGroup["Id"].asString()); + if(!valueDataSwimmingLaneGroup["regionId"].isNull()) + dataObject.regionId = valueDataSwimmingLaneGroup["regionId"].asString(); + if(!valueDataSwimmingLaneGroup["RegionId"].isNull()) + dataObject.regionId5 = valueDataSwimmingLaneGroup["RegionId"].asString(); + if(!valueDataSwimmingLaneGroup["MessageQueueGrayEnable"].isNull()) + dataObject.messageQueueGrayEnable = valueDataSwimmingLaneGroup["MessageQueueGrayEnable"].asString() == "true"; + if(!valueDataSwimmingLaneGroup["status"].isNull()) + dataObject.status = std::stoi(valueDataSwimmingLaneGroup["status"].asString()); + if(!valueDataSwimmingLaneGroup["enableRules"].isNull()) + dataObject.enableRules = valueDataSwimmingLaneGroup["enableRules"].asString() == "true"; + if(!valueDataSwimmingLaneGroup["entryRule"].isNull()) + dataObject.entryRule = valueDataSwimmingLaneGroup["entryRule"].asString(); + if(!valueDataSwimmingLaneGroup["gmtCreate"].isNull()) + dataObject.gmtCreate = valueDataSwimmingLaneGroup["gmtCreate"].asString(); + if(!valueDataSwimmingLaneGroup["gmtModified"].isNull()) + dataObject.gmtModified = valueDataSwimmingLaneGroup["gmtModified"].asString(); + if(!valueDataSwimmingLaneGroup["groupId"].isNull()) + dataObject.groupId = valueDataSwimmingLaneGroup["groupId"].asString(); + if(!valueDataSwimmingLaneGroup["GroupId"].isNull()) + dataObject.groupId6 = valueDataSwimmingLaneGroup["GroupId"].asString(); + if(!valueDataSwimmingLaneGroup["tag"].isNull()) + dataObject.tag = valueDataSwimmingLaneGroup["tag"].asString(); + if(!valueDataSwimmingLaneGroup["Tag"].isNull()) + dataObject.tag7 = valueDataSwimmingLaneGroup["Tag"].asString(); + auto allEntryRulesNode = valueDataSwimmingLaneGroup["EntryRules"]["EntryRule"]; + for (auto valueDataSwimmingLaneGroupEntryRulesEntryRule : allEntryRulesNode) + { + SwimmingLaneGroup::EntryRule entryRulesObject; + if(!valueDataSwimmingLaneGroupEntryRulesEntryRule["path"].isNull()) + entryRulesObject.path = valueDataSwimmingLaneGroupEntryRulesEntryRule["path"].asString(); + if(!valueDataSwimmingLaneGroupEntryRulesEntryRule["condition"].isNull()) + entryRulesObject.condition = valueDataSwimmingLaneGroupEntryRulesEntryRule["condition"].asString(); + auto allrestItemsNode = valueDataSwimmingLaneGroupEntryRulesEntryRule["restItems"]["RestItemsItem"]; + for (auto valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem : allrestItemsNode) + { + SwimmingLaneGroup::EntryRule::RestItemsItem restItemsObject; + if(!valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["type"].isNull()) + restItemsObject.type = valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["type"].asString(); + if(!valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["name"].isNull()) + restItemsObject.name = valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["name"].asString(); + if(!valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["operator"].isNull()) + restItemsObject._operator = valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["operator"].asString(); + if(!valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["datum"].isNull()) + restItemsObject.datum = valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["datum"].asString(); + if(!valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["cond"].isNull()) + restItemsObject.cond = valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["cond"].asString(); + if(!valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["divisor"].isNull()) + restItemsObject.divisor = std::stoi(valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["divisor"].asString()); + if(!valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["remainder"].isNull()) + restItemsObject.remainder = std::stoi(valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["remainder"].asString()); + if(!valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["rate"].isNull()) + restItemsObject.rate = std::stoi(valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["rate"].asString()); + if(!valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["value"].isNull()) + restItemsObject.value = valueDataSwimmingLaneGroupEntryRulesEntryRulerestItemsRestItemsItem["value"].asString(); + auto allNameList = value["nameList"]["NameList"]; + for (auto value : allNameList) + restItemsObject.nameList.push_back(value.asString()); + entryRulesObject.restItems.push_back(restItemsObject); + } + auto allPaths = value["paths"]["Paths"]; + for (auto value : allPaths) + entryRulesObject.paths.push_back(value.asString()); + dataObject.entryRules.push_back(entryRulesObject); + } + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } +std::string QueryAllSwimmingLaneResult::getMessage()const +{ + return message_; +} + +std::vector QueryAllSwimmingLaneResult::getData()const +{ + return data_; +} + +std::string QueryAllSwimmingLaneResult::getErrorCode()const +{ + return errorCode_; +} + +bool QueryAllSwimmingLaneResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryClusterDetailRequest.cc b/mse/src/model/QueryClusterDetailRequest.cc index c665b2678..25db07ae3 100644 --- a/mse/src/model/QueryClusterDetailRequest.cc +++ b/mse/src/model/QueryClusterDetailRequest.cc @@ -25,15 +25,6 @@ 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::getMseSessionId() const { return mseSessionId_; } @@ -43,6 +34,15 @@ void QueryClusterDetailRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } +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/QueryClusterInfoRequest.cc b/mse/src/model/QueryClusterInfoRequest.cc index bbe8b2fa2..f026663a6 100644 --- a/mse/src/model/QueryClusterInfoRequest.cc +++ b/mse/src/model/QueryClusterInfoRequest.cc @@ -25,15 +25,6 @@ QueryClusterInfoRequest::QueryClusterInfoRequest() QueryClusterInfoRequest::~QueryClusterInfoRequest() {} -bool QueryClusterInfoRequest::getAclSwitch() const { - return aclSwitch_; -} - -void QueryClusterInfoRequest::setAclSwitch(bool aclSwitch) { - aclSwitch_ = aclSwitch; - setParameter(std::string("AclSwitch"), aclSwitch ? "true" : "false"); -} - std::string QueryClusterInfoRequest::getMseSessionId() const { return mseSessionId_; } @@ -43,6 +34,33 @@ void QueryClusterInfoRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } +std::string QueryClusterInfoRequest::getRegionId() const { + return regionId_; +} + +void QueryClusterInfoRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string QueryClusterInfoRequest::getRequestPars() const { + return requestPars_; +} + +void QueryClusterInfoRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +bool QueryClusterInfoRequest::getAclSwitch() const { + return aclSwitch_; +} + +void QueryClusterInfoRequest::setAclSwitch(bool aclSwitch) { + aclSwitch_ = aclSwitch; + setParameter(std::string("AclSwitch"), aclSwitch ? "true" : "false"); +} + std::string QueryClusterInfoRequest::getOrderId() const { return orderId_; } @@ -70,24 +88,6 @@ void QueryClusterInfoRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } -std::string QueryClusterInfoRequest::getRegionId() const { - return regionId_; -} - -void QueryClusterInfoRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string QueryClusterInfoRequest::getRequestPars() const { - return requestPars_; -} - -void QueryClusterInfoRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - std::string QueryClusterInfoRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/QueryClusterInfoResult.cc b/mse/src/model/QueryClusterInfoResult.cc index abc1dd31d..21be47fd0 100644 --- a/mse/src/model/QueryClusterInfoResult.cc +++ b/mse/src/model/QueryClusterInfoResult.cc @@ -132,6 +132,9 @@ void QueryClusterInfoResult::parse(const std::string &payload) instanceModelObject.zone = dataNodeInstanceModelsInstanceModel["Zone"].asString(); data_.instanceModels.push_back(instanceModelObject); } + auto allExpectZones = dataNode["ExpectZones"]["ExpectZone"]; + for (auto value : allExpectZones) + data_.expectZones.push_back(value.asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["ErrorCode"].isNull()) diff --git a/mse/src/model/QueryConfigRequest.cc b/mse/src/model/QueryConfigRequest.cc index b2804b75b..9de8c1b77 100644 --- a/mse/src/model/QueryConfigRequest.cc +++ b/mse/src/model/QueryConfigRequest.cc @@ -20,20 +20,11 @@ using AlibabaCloud::Mse::Model::QueryConfigRequest; QueryConfigRequest::QueryConfigRequest() : RpcServiceRequest("mse", "2019-05-31", "QueryConfig") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } QueryConfigRequest::~QueryConfigRequest() {} -bool QueryConfigRequest::getNeedRunningConf() const { - return needRunningConf_; -} - -void QueryConfigRequest::setNeedRunningConf(bool needRunningConf) { - needRunningConf_ = needRunningConf; - setParameter(std::string("NeedRunningConf"), needRunningConf ? "true" : "false"); -} - std::string QueryConfigRequest::getMseSessionId() const { return mseSessionId_; } @@ -43,6 +34,24 @@ void QueryConfigRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } +std::string QueryConfigRequest::getRequestPars() const { + return requestPars_; +} + +void QueryConfigRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +bool QueryConfigRequest::getNeedRunningConf() const { + return needRunningConf_; +} + +void QueryConfigRequest::setNeedRunningConf(bool needRunningConf) { + needRunningConf_ = needRunningConf; + setParameter(std::string("NeedRunningConf"), needRunningConf ? "true" : "false"); +} + std::string QueryConfigRequest::getConfigType() const { return configType_; } @@ -70,15 +79,6 @@ void QueryConfigRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } -std::string QueryConfigRequest::getRequestPars() const { - return requestPars_; -} - -void QueryConfigRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - std::string QueryConfigRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/QueryConfigResult.cc b/mse/src/model/QueryConfigResult.cc index 851a19881..dabc071a4 100644 --- a/mse/src/model/QueryConfigResult.cc +++ b/mse/src/model/QueryConfigResult.cc @@ -94,6 +94,10 @@ void QueryConfigResult::parse(const std::string &payload) data_.configContentLimit = std::stol(dataNode["ConfigContentLimit"].asString()); if(!dataNode["ExtendedTypesEnable"].isNull()) data_.extendedTypesEnable = dataNode["ExtendedTypesEnable"].asString() == "true"; + if(!dataNode["EurekaSupported"].isNull()) + data_.eurekaSupported = dataNode["EurekaSupported"].asString() == "true"; + if(!dataNode["TLSEnabled"].isNull()) + data_.tLSEnabled = dataNode["TLSEnabled"].asString() == "true"; auto nacosRunningEnvNode = dataNode["NacosRunningEnv"]; if(!nacosRunningEnvNode["emptyProtect"].isNull()) data_.nacosRunningEnv.emptyProtect = nacosRunningEnvNode["emptyProtect"].asString() == "true"; diff --git a/mse/src/model/QueryGovernanceKubernetesClusterRequest.cc b/mse/src/model/QueryGovernanceKubernetesClusterRequest.cc index 6f4a09862..db9e75502 100644 --- a/mse/src/model/QueryGovernanceKubernetesClusterRequest.cc +++ b/mse/src/model/QueryGovernanceKubernetesClusterRequest.cc @@ -43,15 +43,6 @@ void QueryGovernanceKubernetesClusterRequest::setClusterName(const std::string & setParameter(std::string("ClusterName"), clusterName); } -std::string QueryGovernanceKubernetesClusterRequest::getClusterId() const { - return clusterId_; -} - -void QueryGovernanceKubernetesClusterRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - int QueryGovernanceKubernetesClusterRequest::getPageNumber() const { return pageNumber_; } @@ -70,6 +61,15 @@ void QueryGovernanceKubernetesClusterRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::string QueryGovernanceKubernetesClusterRequest::getClusterId() const { + return clusterId_; +} + +void QueryGovernanceKubernetesClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + std::string QueryGovernanceKubernetesClusterRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/QueryGovernanceKubernetesClusterResult.cc b/mse/src/model/QueryGovernanceKubernetesClusterResult.cc index 8b912bc14..1604cdacb 100644 --- a/mse/src/model/QueryGovernanceKubernetesClusterResult.cc +++ b/mse/src/model/QueryGovernanceKubernetesClusterResult.cc @@ -64,12 +64,8 @@ void QueryGovernanceKubernetesClusterResult::parse(const std::string &payload) clusterListObject.pilotStartTime = dataNodeResultClusterList["PilotStartTime"].asString(); data_.result.push_back(clusterListObject); } - 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"; @@ -80,21 +76,11 @@ std::string QueryGovernanceKubernetesClusterResult::getMessage()const return message_; } -int QueryGovernanceKubernetesClusterResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - QueryGovernanceKubernetesClusterResult::Data QueryGovernanceKubernetesClusterResult::getData()const { return data_; } -int QueryGovernanceKubernetesClusterResult::getCode()const -{ - return code_; -} - bool QueryGovernanceKubernetesClusterResult::getSuccess()const { return success_; diff --git a/mse/src/model/QueryInstancesInfoRequest.cc b/mse/src/model/QueryInstancesInfoRequest.cc index 7db5cbe26..92b06a53b 100644 --- a/mse/src/model/QueryInstancesInfoRequest.cc +++ b/mse/src/model/QueryInstancesInfoRequest.cc @@ -34,6 +34,24 @@ void QueryInstancesInfoRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } +std::string QueryInstancesInfoRequest::getRegionId() const { + return regionId_; +} + +void QueryInstancesInfoRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string QueryInstancesInfoRequest::getRequestPars() const { + return requestPars_; +} + +void QueryInstancesInfoRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + std::string QueryInstancesInfoRequest::getOrderId() const { return orderId_; } @@ -61,24 +79,6 @@ void QueryInstancesInfoRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } -std::string QueryInstancesInfoRequest::getRegionId() const { - return regionId_; -} - -void QueryInstancesInfoRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string QueryInstancesInfoRequest::getRequestPars() const { - return requestPars_; -} - -void QueryInstancesInfoRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - std::string QueryInstancesInfoRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/QueryInstancesInfoResult.cc b/mse/src/model/QueryInstancesInfoResult.cc index 44cdfa0e1..5c362a27f 100644 --- a/mse/src/model/QueryInstancesInfoResult.cc +++ b/mse/src/model/QueryInstancesInfoResult.cc @@ -61,6 +61,8 @@ void QueryInstancesInfoResult::parse(const std::string &payload) dataObject.clientPort = valueDataInstanceModels["ClientPort"].asString(); if(!valueDataInstanceModels["Zone"].isNull()) dataObject.zone = valueDataInstanceModels["Zone"].asString(); + if(!valueDataInstanceModels["ZoneDistributed"].isNull()) + dataObject.zoneDistributed = valueDataInstanceModels["ZoneDistributed"].asString() == "true"; data_.push_back(dataObject); } if(!value["Success"].isNull()) diff --git a/mse/src/model/QueryMonitorRequest.cc b/mse/src/model/QueryMonitorRequest.cc index d31fd433b..66ac6617e 100644 --- a/mse/src/model/QueryMonitorRequest.cc +++ b/mse/src/model/QueryMonitorRequest.cc @@ -20,20 +20,11 @@ using AlibabaCloud::Mse::Model::QueryMonitorRequest; QueryMonitorRequest::QueryMonitorRequest() : RpcServiceRequest("mse", "2019-05-31", "QueryMonitor") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } QueryMonitorRequest::~QueryMonitorRequest() {} -std::string QueryMonitorRequest::getMonitorType() const { - return monitorType_; -} - -void QueryMonitorRequest::setMonitorType(const std::string &monitorType) { - monitorType_ = monitorType; - setParameter(std::string("MonitorType"), monitorType); -} - std::string QueryMonitorRequest::getMseSessionId() const { return mseSessionId_; } @@ -43,6 +34,33 @@ void QueryMonitorRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } +long QueryMonitorRequest::getStartTime() const { + return startTime_; +} + +void QueryMonitorRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string QueryMonitorRequest::getRequestPars() const { + return requestPars_; +} + +void QueryMonitorRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string QueryMonitorRequest::getMonitorType() const { + return monitorType_; +} + +void QueryMonitorRequest::setMonitorType(const std::string &monitorType) { + monitorType_ = monitorType; + setParameter(std::string("MonitorType"), monitorType); +} + long QueryMonitorRequest::getEndTime() const { return endTime_; } @@ -61,15 +79,6 @@ void QueryMonitorRequest::setClusterId(const std::string &clusterId) { setParameter(std::string("ClusterId"), clusterId); } -long QueryMonitorRequest::getStartTime() const { - return startTime_; -} - -void QueryMonitorRequest::setStartTime(long startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), std::to_string(startTime)); -} - std::string QueryMonitorRequest::getInstanceId() const { return instanceId_; } @@ -79,15 +88,6 @@ void QueryMonitorRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } -std::string QueryMonitorRequest::getRequestPars() const { - return requestPars_; -} - -void QueryMonitorRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - std::string QueryMonitorRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/QueryNamespaceRequest.cc b/mse/src/model/QueryNamespaceRequest.cc new file mode 100644 index 000000000..f653a810b --- /dev/null +++ b/mse/src/model/QueryNamespaceRequest.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::QueryNamespaceRequest; + +QueryNamespaceRequest::QueryNamespaceRequest() + : RpcServiceRequest("mse", "2019-05-31", "QueryNamespace") { + setMethod(HttpRequest::Method::Post); +} + +QueryNamespaceRequest::~QueryNamespaceRequest() {} + +std::string QueryNamespaceRequest::getMseSessionId() const { + return mseSessionId_; +} + +void QueryNamespaceRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string QueryNamespaceRequest::getName() const { + return name_; +} + +void QueryNamespaceRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string QueryNamespaceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void QueryNamespaceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string QueryNamespaceRequest::getRegion() const { + return region_; +} + +void QueryNamespaceRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/QueryNamespaceResult.cc b/mse/src/model/QueryNamespaceResult.cc new file mode 100644 index 000000000..9f3e58f0c --- /dev/null +++ b/mse/src/model/QueryNamespaceResult.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; + +QueryNamespaceResult::QueryNamespaceResult() : + ServiceResult() +{} + +QueryNamespaceResult::QueryNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryNamespaceResult::~QueryNamespaceResult() +{} + +void QueryNamespaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["NamespaceList"]; + for (auto valueDataNamespaceList : allDataNode) + { + NamespaceList dataObject; + if(!valueDataNamespaceList["Region"].isNull()) + dataObject.region = valueDataNamespaceList["Region"].asString(); + if(!valueDataNamespaceList["Namespace"].isNull()) + dataObject._namespace = valueDataNamespaceList["Namespace"].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["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryNamespaceResult::getMessage()const +{ + return message_; +} + +int QueryNamespaceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector QueryNamespaceResult::getData()const +{ + return data_; +} + +std::string QueryNamespaceResult::getErrorCode()const +{ + return errorCode_; +} + +bool QueryNamespaceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QuerySwimmingLaneByIdRequest.cc b/mse/src/model/QuerySwimmingLaneByIdRequest.cc index c480cee50..c3d996ce3 100644 --- a/mse/src/model/QuerySwimmingLaneByIdRequest.cc +++ b/mse/src/model/QuerySwimmingLaneByIdRequest.cc @@ -43,6 +43,15 @@ void QuerySwimmingLaneByIdRequest::setLaneId(long laneId) { setParameter(std::string("LaneId"), std::to_string(laneId)); } +std::string QuerySwimmingLaneByIdRequest::get_Namespace() const { + return _namespace_; +} + +void QuerySwimmingLaneByIdRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + std::string QuerySwimmingLaneByIdRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/QuerySwimmingLaneByIdResult.cc b/mse/src/model/QuerySwimmingLaneByIdResult.cc index 780e0acde..52d976242 100644 --- a/mse/src/model/QuerySwimmingLaneByIdResult.cc +++ b/mse/src/model/QuerySwimmingLaneByIdResult.cc @@ -39,6 +39,111 @@ void QuerySwimmingLaneByIdResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["name"].isNull()) + data_.name = dataNode["name"].asString(); + if(!dataNode["id"].isNull()) + data_.id = std::stol(dataNode["id"].asString()); + if(!dataNode["tag"].isNull()) + data_.tag = dataNode["tag"].asString(); + if(!dataNode["status"].isNull()) + data_.status = std::stoi(dataNode["status"].asString()); + if(!dataNode["enable"].isNull()) + data_.enable = dataNode["enable"].asString() == "true"; + if(!dataNode["regionId"].isNull()) + data_.regionId = dataNode["regionId"].asString(); + if(!dataNode["groupId"].isNull()) + data_.groupId = std::stol(dataNode["groupId"].asString()); + if(!dataNode["entryRule"].isNull()) + data_.entryRule = dataNode["entryRule"].asString(); + if(!dataNode["enableRules"].isNull()) + data_.enableRules = dataNode["enableRules"].asString() == "true"; + if(!dataNode["gmtCreate"].isNull()) + data_.gmtCreate = dataNode["gmtCreate"].asString(); + if(!dataNode["gmtModified"].isNull()) + data_.gmtModified = dataNode["gmtModified"].asString(); + if(!dataNode["gatewaySwimmingLaneRouteJson"].isNull()) + data_.gatewaySwimmingLaneRouteJson = dataNode["gatewaySwimmingLaneRouteJson"].asString(); + auto allentryRulesNode = dataNode["entryRules"]["EntryRule"]; + for (auto dataNodeentryRulesEntryRule : allentryRulesNode) + { + Data::EntryRule entryRuleObject; + if(!dataNodeentryRulesEntryRule["path"].isNull()) + entryRuleObject.path = dataNodeentryRulesEntryRule["path"].asString(); + if(!dataNodeentryRulesEntryRule["condition"].isNull()) + entryRuleObject.condition = dataNodeentryRulesEntryRule["condition"].asString(); + auto allrestItemsNode = dataNodeentryRulesEntryRule["restItems"]["RestItemsItem"]; + for (auto dataNodeentryRulesEntryRulerestItemsRestItemsItem : allrestItemsNode) + { + Data::EntryRule::RestItemsItem restItemsObject; + if(!dataNodeentryRulesEntryRulerestItemsRestItemsItem["type"].isNull()) + restItemsObject.type = dataNodeentryRulesEntryRulerestItemsRestItemsItem["type"].asString(); + if(!dataNodeentryRulesEntryRulerestItemsRestItemsItem["name"].isNull()) + restItemsObject.name = dataNodeentryRulesEntryRulerestItemsRestItemsItem["name"].asString(); + if(!dataNodeentryRulesEntryRulerestItemsRestItemsItem["operator"].isNull()) + restItemsObject._operator = dataNodeentryRulesEntryRulerestItemsRestItemsItem["operator"].asString(); + if(!dataNodeentryRulesEntryRulerestItemsRestItemsItem["datum"].isNull()) + restItemsObject.datum = dataNodeentryRulesEntryRulerestItemsRestItemsItem["datum"].asString(); + if(!dataNodeentryRulesEntryRulerestItemsRestItemsItem["cond"].isNull()) + restItemsObject.cond = dataNodeentryRulesEntryRulerestItemsRestItemsItem["cond"].asString(); + if(!dataNodeentryRulesEntryRulerestItemsRestItemsItem["divisor"].isNull()) + restItemsObject.divisor = std::stoi(dataNodeentryRulesEntryRulerestItemsRestItemsItem["divisor"].asString()); + if(!dataNodeentryRulesEntryRulerestItemsRestItemsItem["remainder"].isNull()) + restItemsObject.remainder = std::stoi(dataNodeentryRulesEntryRulerestItemsRestItemsItem["remainder"].asString()); + if(!dataNodeentryRulesEntryRulerestItemsRestItemsItem["rate"].isNull()) + restItemsObject.rate = std::stoi(dataNodeentryRulesEntryRulerestItemsRestItemsItem["rate"].asString()); + if(!dataNodeentryRulesEntryRulerestItemsRestItemsItem["value"].isNull()) + restItemsObject.value = dataNodeentryRulesEntryRulerestItemsRestItemsItem["value"].asString(); + auto allNameList = value["nameList"]["NameList"]; + for (auto value : allNameList) + restItemsObject.nameList.push_back(value.asString()); + entryRuleObject.restItems.push_back(restItemsObject); + } + auto allPaths = value["paths"]["Paths"]; + for (auto value : allPaths) + entryRuleObject.paths.push_back(value.asString()); + data_.entryRules.push_back(entryRuleObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } +std::string QuerySwimmingLaneByIdResult::getMessage()const +{ + return message_; +} + +int QuerySwimmingLaneByIdResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +QuerySwimmingLaneByIdResult::Data QuerySwimmingLaneByIdResult::getData()const +{ + return data_; +} + +std::string QuerySwimmingLaneByIdResult::getErrorCode()const +{ + return errorCode_; +} + +int QuerySwimmingLaneByIdResult::getCode()const +{ + return code_; +} + +bool QuerySwimmingLaneByIdResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryZnodeDetailRequest.cc b/mse/src/model/QueryZnodeDetailRequest.cc index 6eb25500c..160aa8043 100644 --- a/mse/src/model/QueryZnodeDetailRequest.cc +++ b/mse/src/model/QueryZnodeDetailRequest.cc @@ -34,15 +34,6 @@ void QueryZnodeDetailRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } -std::string QueryZnodeDetailRequest::getClusterId() const { - return clusterId_; -} - -void QueryZnodeDetailRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - std::string QueryZnodeDetailRequest::getPath() const { return path_; } @@ -52,15 +43,6 @@ 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_; } @@ -70,6 +52,24 @@ void QueryZnodeDetailRequest::setRequestPars(const std::string &requestPars) { setParameter(std::string("RequestPars"), requestPars); } +std::string QueryZnodeDetailRequest::getClusterId() const { + return clusterId_; +} + +void QueryZnodeDetailRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string QueryZnodeDetailRequest::getInstanceId() const { + return instanceId_; +} + +void QueryZnodeDetailRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + std::string QueryZnodeDetailRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/RemoveApplicationRequest.cc b/mse/src/model/RemoveApplicationRequest.cc new file mode 100644 index 000000000..f9ea87d9d --- /dev/null +++ b/mse/src/model/RemoveApplicationRequest.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::RemoveApplicationRequest; + +RemoveApplicationRequest::RemoveApplicationRequest() + : RpcServiceRequest("mse", "2019-05-31", "RemoveApplication") { + setMethod(HttpRequest::Method::Post); +} + +RemoveApplicationRequest::~RemoveApplicationRequest() {} + +std::string RemoveApplicationRequest::getMseSessionId() const { + return mseSessionId_; +} + +void RemoveApplicationRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string RemoveApplicationRequest::getAppName() const { + return appName_; +} + +void RemoveApplicationRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string RemoveApplicationRequest::getAppId() const { + return appId_; +} + +void RemoveApplicationRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string RemoveApplicationRequest::get_Namespace() const { + return _namespace_; +} + +void RemoveApplicationRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string RemoveApplicationRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void RemoveApplicationRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string RemoveApplicationRequest::getRegion() const { + return region_; +} + +void RemoveApplicationRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/RemoveApplicationResult.cc b/mse/src/model/RemoveApplicationResult.cc new file mode 100644 index 000000000..5699066af --- /dev/null +++ b/mse/src/model/RemoveApplicationResult.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 +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +RemoveApplicationResult::RemoveApplicationResult() : + ServiceResult() +{} + +RemoveApplicationResult::RemoveApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveApplicationResult::~RemoveApplicationResult() +{} + +void RemoveApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string RemoveApplicationResult::getMessage()const +{ + return message_; +} + +std::string RemoveApplicationResult::getData()const +{ + return data_; +} + +std::string RemoveApplicationResult::getErrorCode()const +{ + return errorCode_; +} + +bool RemoveApplicationResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/RemoveAuthPolicyRequest.cc b/mse/src/model/RemoveAuthPolicyRequest.cc new file mode 100644 index 000000000..300de640c --- /dev/null +++ b/mse/src/model/RemoveAuthPolicyRequest.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::RemoveAuthPolicyRequest; + +RemoveAuthPolicyRequest::RemoveAuthPolicyRequest() + : RpcServiceRequest("mse", "2019-05-31", "RemoveAuthPolicy") { + setMethod(HttpRequest::Method::Post); +} + +RemoveAuthPolicyRequest::~RemoveAuthPolicyRequest() {} + +std::string RemoveAuthPolicyRequest::getMseSessionId() const { + return mseSessionId_; +} + +void RemoveAuthPolicyRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string RemoveAuthPolicyRequest::getPolicyId() const { + return policyId_; +} + +void RemoveAuthPolicyRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setParameter(std::string("PolicyId"), policyId); +} + +std::string RemoveAuthPolicyRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void RemoveAuthPolicyRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/RemoveAuthPolicyResult.cc b/mse/src/model/RemoveAuthPolicyResult.cc new file mode 100644 index 000000000..4cc56ac40 --- /dev/null +++ b/mse/src/model/RemoveAuthPolicyResult.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; + +RemoveAuthPolicyResult::RemoveAuthPolicyResult() : + ServiceResult() +{} + +RemoveAuthPolicyResult::RemoveAuthPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveAuthPolicyResult::~RemoveAuthPolicyResult() +{} + +void RemoveAuthPolicyResult::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 RemoveAuthPolicyResult::getMessage()const +{ + return message_; +} + +int RemoveAuthPolicyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string RemoveAuthPolicyResult::getData()const +{ + return data_; +} + +int RemoveAuthPolicyResult::getCode()const +{ + return code_; +} + +bool RemoveAuthPolicyResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/RestartClusterRequest.cc b/mse/src/model/RestartClusterRequest.cc index 416301cfc..5ee72c9db 100644 --- a/mse/src/model/RestartClusterRequest.cc +++ b/mse/src/model/RestartClusterRequest.cc @@ -34,15 +34,6 @@ void RestartClusterRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } -std::string RestartClusterRequest::getClusterId() const { - return clusterId_; -} - -void RestartClusterRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - std::string RestartClusterRequest::getPodNameList() const { return podNameList_; } @@ -52,15 +43,6 @@ void RestartClusterRequest::setPodNameList(const std::string &podNameList) { setParameter(std::string("PodNameList"), podNameList); } -std::string RestartClusterRequest::getInstanceId() const { - return instanceId_; -} - -void RestartClusterRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - std::string RestartClusterRequest::getRequestPars() const { return requestPars_; } @@ -70,6 +52,24 @@ void RestartClusterRequest::setRequestPars(const std::string &requestPars) { setParameter(std::string("RequestPars"), requestPars); } +std::string RestartClusterRequest::getClusterId() const { + return clusterId_; +} + +void RestartClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string RestartClusterRequest::getInstanceId() const { + return instanceId_; +} + +void RestartClusterRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + std::string RestartClusterRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/RetryClusterRequest.cc b/mse/src/model/RetryClusterRequest.cc index b21ccda88..dd94d55fb 100644 --- a/mse/src/model/RetryClusterRequest.cc +++ b/mse/src/model/RetryClusterRequest.cc @@ -34,6 +34,15 @@ void RetryClusterRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } +std::string RetryClusterRequest::getRequestPars() const { + return requestPars_; +} + +void RetryClusterRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + std::string RetryClusterRequest::getClusterId() const { return clusterId_; } @@ -52,15 +61,6 @@ void RetryClusterRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } -std::string RetryClusterRequest::getRequestPars() const { - return requestPars_; -} - -void RetryClusterRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - std::string RetryClusterRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/TagResourcesRequest.cc b/mse/src/model/TagResourcesRequest.cc index 8d141ff66..33cd9af4b 100644 --- a/mse/src/model/TagResourcesRequest.cc +++ b/mse/src/model/TagResourcesRequest.cc @@ -34,6 +34,29 @@ void TagResourcesRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } +std::string TagResourcesRequest::getRegionId() const { + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector TagResourcesRequest::getTag() const { + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::vector TagResourcesRequest::getResourceId() const { return resourceId_; } @@ -51,15 +74,6 @@ void TagResourcesRequest::setResourceType(const std::string &resourceType) { setParameter(std::string("ResourceType"), resourceType); } -std::string TagResourcesRequest::getRegionId() const { - return regionId_; -} - -void TagResourcesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string TagResourcesRequest::getAcceptLanguage() const { return acceptLanguage_; } @@ -69,17 +83,3 @@ void TagResourcesRequest::setAcceptLanguage(const std::string &acceptLanguage) { setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::vector TagResourcesRequest::getTag() const { - return tag_; -} - -void TagResourcesRequest::setTag(const std::vector &tag) { - tag_ = tag; - for(int dep1 = 0; dep1 != tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } -} - diff --git a/mse/src/model/UntagResourcesRequest.cc b/mse/src/model/UntagResourcesRequest.cc index 12c7477ce..934a17156 100644 --- a/mse/src/model/UntagResourcesRequest.cc +++ b/mse/src/model/UntagResourcesRequest.cc @@ -25,15 +25,6 @@ UntagResourcesRequest::UntagResourcesRequest() UntagResourcesRequest::~UntagResourcesRequest() {} -bool UntagResourcesRequest::getAll() const { - return all_; -} - -void UntagResourcesRequest::setAll(bool all) { - all_ = all; - setParameter(std::string("All"), all ? "true" : "false"); -} - std::string UntagResourcesRequest::getMseSessionId() const { return mseSessionId_; } @@ -43,6 +34,24 @@ void UntagResourcesRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } +std::string UntagResourcesRequest::getRegionId() const { + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool UntagResourcesRequest::getAll() const { + return all_; +} + +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); +} + std::vector UntagResourcesRequest::getResourceId() const { return resourceId_; } @@ -60,15 +69,6 @@ void UntagResourcesRequest::setResourceType(const std::string &resourceType) { setParameter(std::string("ResourceType"), resourceType); } -std::string UntagResourcesRequest::getRegionId() const { - return regionId_; -} - -void UntagResourcesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string UntagResourcesRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/UpdateAuthPolicyRequest.cc b/mse/src/model/UpdateAuthPolicyRequest.cc new file mode 100644 index 000000000..ece16c191 --- /dev/null +++ b/mse/src/model/UpdateAuthPolicyRequest.cc @@ -0,0 +1,126 @@ +/* + * 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::UpdateAuthPolicyRequest; + +UpdateAuthPolicyRequest::UpdateAuthPolicyRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateAuthPolicy") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAuthPolicyRequest::~UpdateAuthPolicyRequest() {} + +std::string UpdateAuthPolicyRequest::getMseSessionId() const { + return mseSessionId_; +} + +void UpdateAuthPolicyRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string UpdateAuthPolicyRequest::getAuthRule() const { + return authRule_; +} + +void UpdateAuthPolicyRequest::setAuthRule(const std::string &authRule) { + authRule_ = authRule; + setParameter(std::string("AuthRule"), authRule); +} + +std::string UpdateAuthPolicyRequest::getSource() const { + return source_; +} + +void UpdateAuthPolicyRequest::setSource(const std::string &source) { + source_ = source; + setParameter(std::string("Source"), source); +} + +std::string UpdateAuthPolicyRequest::getProtocol() const { + return protocol_; +} + +void UpdateAuthPolicyRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +std::string UpdateAuthPolicyRequest::getEnable() const { + return enable_; +} + +void UpdateAuthPolicyRequest::setEnable(const std::string &enable) { + enable_ = enable; + setParameter(std::string("Enable"), enable); +} + +std::string UpdateAuthPolicyRequest::getId() const { + return id_; +} + +void UpdateAuthPolicyRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("Id"), id); +} + +std::string UpdateAuthPolicyRequest::getK8sNamespace() const { + return k8sNamespace_; +} + +void UpdateAuthPolicyRequest::setK8sNamespace(const std::string &k8sNamespace) { + k8sNamespace_ = k8sNamespace; + setParameter(std::string("K8sNamespace"), k8sNamespace); +} + +std::string UpdateAuthPolicyRequest::getAppId() const { + return appId_; +} + +void UpdateAuthPolicyRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string UpdateAuthPolicyRequest::getName() const { + return name_; +} + +void UpdateAuthPolicyRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string UpdateAuthPolicyRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateAuthPolicyRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string UpdateAuthPolicyRequest::getRegion() const { + return region_; +} + +void UpdateAuthPolicyRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/UpdateAuthPolicyResult.cc b/mse/src/model/UpdateAuthPolicyResult.cc new file mode 100644 index 000000000..8a1639443 --- /dev/null +++ b/mse/src/model/UpdateAuthPolicyResult.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; + +UpdateAuthPolicyResult::UpdateAuthPolicyResult() : + ServiceResult() +{} + +UpdateAuthPolicyResult::UpdateAuthPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAuthPolicyResult::~UpdateAuthPolicyResult() +{} + +void UpdateAuthPolicyResult::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 UpdateAuthPolicyResult::getMessage()const +{ + return message_; +} + +int UpdateAuthPolicyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateAuthPolicyResult::getData()const +{ + return data_; +} + +int UpdateAuthPolicyResult::getCode()const +{ + return code_; +} + +bool UpdateAuthPolicyResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateCircuitBreakerRuleRequest.cc b/mse/src/model/UpdateCircuitBreakerRuleRequest.cc new file mode 100644 index 000000000..5b3c2dd39 --- /dev/null +++ b/mse/src/model/UpdateCircuitBreakerRuleRequest.cc @@ -0,0 +1,162 @@ +/* + * 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::UpdateCircuitBreakerRuleRequest; + +UpdateCircuitBreakerRuleRequest::UpdateCircuitBreakerRuleRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateCircuitBreakerRule") { + setMethod(HttpRequest::Method::Post); +} + +UpdateCircuitBreakerRuleRequest::~UpdateCircuitBreakerRuleRequest() {} + +std::string UpdateCircuitBreakerRuleRequest::getMseSessionId() const { + return mseSessionId_; +} + +void UpdateCircuitBreakerRuleRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +float UpdateCircuitBreakerRuleRequest::getThreshold() const { + return threshold_; +} + +void UpdateCircuitBreakerRuleRequest::setThreshold(float threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), std::to_string(threshold)); +} + +int UpdateCircuitBreakerRuleRequest::getRetryTimeoutMs() const { + return retryTimeoutMs_; +} + +void UpdateCircuitBreakerRuleRequest::setRetryTimeoutMs(int retryTimeoutMs) { + retryTimeoutMs_ = retryTimeoutMs; + setParameter(std::string("RetryTimeoutMs"), std::to_string(retryTimeoutMs)); +} + +std::string UpdateCircuitBreakerRuleRequest::getAppName() const { + return appName_; +} + +void UpdateCircuitBreakerRuleRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +bool UpdateCircuitBreakerRuleRequest::getEnable() const { + return enable_; +} + +void UpdateCircuitBreakerRuleRequest::setEnable(bool enable) { + enable_ = enable; + setParameter(std::string("Enable"), enable ? "true" : "false"); +} + +int UpdateCircuitBreakerRuleRequest::getMinRequestAmount() const { + return minRequestAmount_; +} + +void UpdateCircuitBreakerRuleRequest::setMinRequestAmount(int minRequestAmount) { + minRequestAmount_ = minRequestAmount; + setParameter(std::string("MinRequestAmount"), std::to_string(minRequestAmount)); +} + +int UpdateCircuitBreakerRuleRequest::getMaxAllowedRtMs() const { + return maxAllowedRtMs_; +} + +void UpdateCircuitBreakerRuleRequest::setMaxAllowedRtMs(int maxAllowedRtMs) { + maxAllowedRtMs_ = maxAllowedRtMs; + setParameter(std::string("MaxAllowedRtMs"), std::to_string(maxAllowedRtMs)); +} + +long UpdateCircuitBreakerRuleRequest::getRuleId() const { + return ruleId_; +} + +void UpdateCircuitBreakerRuleRequest::setRuleId(long ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), std::to_string(ruleId)); +} + +int UpdateCircuitBreakerRuleRequest::getHalfOpenBaseAmountPerStep() const { + return halfOpenBaseAmountPerStep_; +} + +void UpdateCircuitBreakerRuleRequest::setHalfOpenBaseAmountPerStep(int halfOpenBaseAmountPerStep) { + halfOpenBaseAmountPerStep_ = halfOpenBaseAmountPerStep; + setParameter(std::string("HalfOpenBaseAmountPerStep"), std::to_string(halfOpenBaseAmountPerStep)); +} + +int UpdateCircuitBreakerRuleRequest::getStatIntervalMs() const { + return statIntervalMs_; +} + +void UpdateCircuitBreakerRuleRequest::setStatIntervalMs(int statIntervalMs) { + statIntervalMs_ = statIntervalMs; + setParameter(std::string("StatIntervalMs"), std::to_string(statIntervalMs)); +} + +std::string UpdateCircuitBreakerRuleRequest::getAppId() const { + return appId_; +} + +void UpdateCircuitBreakerRuleRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string UpdateCircuitBreakerRuleRequest::get_Namespace() const { + return _namespace_; +} + +void UpdateCircuitBreakerRuleRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +int UpdateCircuitBreakerRuleRequest::getHalfOpenRecoveryStepNum() const { + return halfOpenRecoveryStepNum_; +} + +void UpdateCircuitBreakerRuleRequest::setHalfOpenRecoveryStepNum(int halfOpenRecoveryStepNum) { + halfOpenRecoveryStepNum_ = halfOpenRecoveryStepNum; + setParameter(std::string("HalfOpenRecoveryStepNum"), std::to_string(halfOpenRecoveryStepNum)); +} + +std::string UpdateCircuitBreakerRuleRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateCircuitBreakerRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +int UpdateCircuitBreakerRuleRequest::getStrategy() const { + return strategy_; +} + +void UpdateCircuitBreakerRuleRequest::setStrategy(int strategy) { + strategy_ = strategy; + setParameter(std::string("Strategy"), std::to_string(strategy)); +} + diff --git a/mse/src/model/UpdateCircuitBreakerRuleResult.cc b/mse/src/model/UpdateCircuitBreakerRuleResult.cc new file mode 100644 index 000000000..f776cf189 --- /dev/null +++ b/mse/src/model/UpdateCircuitBreakerRuleResult.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; + +UpdateCircuitBreakerRuleResult::UpdateCircuitBreakerRuleResult() : + ServiceResult() +{} + +UpdateCircuitBreakerRuleResult::UpdateCircuitBreakerRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateCircuitBreakerRuleResult::~UpdateCircuitBreakerRuleResult() +{} + +void UpdateCircuitBreakerRuleResult::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["Namespace"].isNull()) + data_._namespace = dataNode["Namespace"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["Resource"].isNull()) + data_.resource = dataNode["Resource"].asString(); + if(!dataNode["Strategy"].isNull()) + data_.strategy = std::stoi(dataNode["Strategy"].asString()); + if(!dataNode["Threshold"].isNull()) + data_.threshold = std::stof(dataNode["Threshold"].asString()); + if(!dataNode["Enable"].isNull()) + data_.enable = dataNode["Enable"].asString() == "true"; + if(!dataNode["RetryTimeoutMs"].isNull()) + data_.retryTimeoutMs = std::stoi(dataNode["RetryTimeoutMs"].asString()); + if(!dataNode["StatIntervalMs"].isNull()) + data_.statIntervalMs = std::stoi(dataNode["StatIntervalMs"].asString()); + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["MaxAllowedRtMs"].isNull()) + data_.maxAllowedRtMs = std::stoi(dataNode["MaxAllowedRtMs"].asString()); + if(!dataNode["MinRequestAmount"].isNull()) + data_.minRequestAmount = std::stoi(dataNode["MinRequestAmount"].asString()); + if(!dataNode["HalfOpenBaseAmountPerStep"].isNull()) + data_.halfOpenBaseAmountPerStep = std::stoi(dataNode["HalfOpenBaseAmountPerStep"].asString()); + if(!dataNode["HalfOpenRecoveryStepNum"].isNull()) + data_.halfOpenRecoveryStepNum = std::stoi(dataNode["HalfOpenRecoveryStepNum"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateCircuitBreakerRuleResult::getMessage()const +{ + return message_; +} + +UpdateCircuitBreakerRuleResult::Data UpdateCircuitBreakerRuleResult::getData()const +{ + return data_; +} + +std::string UpdateCircuitBreakerRuleResult::getCode()const +{ + return code_; +} + +bool UpdateCircuitBreakerRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateClusterRequest.cc b/mse/src/model/UpdateClusterRequest.cc index c61e3dc13..878e36774 100644 --- a/mse/src/model/UpdateClusterRequest.cc +++ b/mse/src/model/UpdateClusterRequest.cc @@ -34,6 +34,15 @@ void UpdateClusterRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } +std::string UpdateClusterRequest::getRequestPars() const { + return requestPars_; +} + +void UpdateClusterRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + std::string UpdateClusterRequest::getClusterAliasName() const { return clusterAliasName_; } @@ -61,15 +70,6 @@ void UpdateClusterRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } -std::string UpdateClusterRequest::getRequestPars() const { - return requestPars_; -} - -void UpdateClusterRequest::setRequestPars(const std::string &requestPars) { - requestPars_ = requestPars; - setParameter(std::string("RequestPars"), requestPars); -} - std::string UpdateClusterRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/UpdateClusterSpecRequest.cc b/mse/src/model/UpdateClusterSpecRequest.cc index 6b303b6c1..77b560d19 100644 --- a/mse/src/model/UpdateClusterSpecRequest.cc +++ b/mse/src/model/UpdateClusterSpecRequest.cc @@ -70,6 +70,15 @@ void UpdateClusterSpecRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } +std::string UpdateClusterSpecRequest::getMseVersion() const { + return mseVersion_; +} + +void UpdateClusterSpecRequest::setMseVersion(const std::string &mseVersion) { + mseVersion_ = mseVersion; + setParameter(std::string("MseVersion"), mseVersion); +} + std::string UpdateClusterSpecRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/UpdateClusterSpecResult.cc b/mse/src/model/UpdateClusterSpecResult.cc index cfea9b7ed..e3ad2c19b 100644 --- a/mse/src/model/UpdateClusterSpecResult.cc +++ b/mse/src/model/UpdateClusterSpecResult.cc @@ -49,6 +49,8 @@ void UpdateClusterSpecResult::parse(const std::string &payload) success_ = value["Success"].asString() == "true"; if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } @@ -67,6 +69,11 @@ std::string UpdateClusterSpecResult::getData()const return data_; } +std::string UpdateClusterSpecResult::getErrorCode()const +{ + return errorCode_; +} + int UpdateClusterSpecResult::getCode()const { return code_; diff --git a/mse/src/model/UpdateConfigRequest.cc b/mse/src/model/UpdateConfigRequest.cc index 83a8df017..9b58ab37f 100644 --- a/mse/src/model/UpdateConfigRequest.cc +++ b/mse/src/model/UpdateConfigRequest.cc @@ -25,15 +25,6 @@ UpdateConfigRequest::UpdateConfigRequest() UpdateConfigRequest::~UpdateConfigRequest() {} -std::string UpdateConfigRequest::getOpenSuperAcl() const { - return openSuperAcl_; -} - -void UpdateConfigRequest::setOpenSuperAcl(const std::string &openSuperAcl) { - openSuperAcl_ = openSuperAcl; - setBodyParameter(std::string("OpenSuperAcl"), openSuperAcl); -} - std::string UpdateConfigRequest::getMseSessionId() const { return mseSessionId_; } @@ -61,24 +52,6 @@ void UpdateConfigRequest::setPassWord(const std::string &passWord) { setParameter(std::string("PassWord"), passWord); } -std::string UpdateConfigRequest::getSnapshotCount() const { - return snapshotCount_; -} - -void UpdateConfigRequest::setSnapshotCount(const std::string &snapshotCount) { - snapshotCount_ = snapshotCount; - setParameter(std::string("SnapshotCount"), snapshotCount); -} - -std::string UpdateConfigRequest::getMinSessionTimeout() const { - return minSessionTimeout_; -} - -void UpdateConfigRequest::setMinSessionTimeout(const std::string &minSessionTimeout) { - minSessionTimeout_ = minSessionTimeout; - setParameter(std::string("MinSessionTimeout"), minSessionTimeout); -} - std::string UpdateConfigRequest::getMaxClientCnxns() const { return maxClientCnxns_; } @@ -97,15 +70,6 @@ void UpdateConfigRequest::setRequestPars(const std::string &requestPars) { setParameter(std::string("RequestPars"), requestPars); } -std::string UpdateConfigRequest::getJuteMaxbuffer() const { - return juteMaxbuffer_; -} - -void UpdateConfigRequest::setJuteMaxbuffer(const std::string &juteMaxbuffer) { - juteMaxbuffer_ = juteMaxbuffer; - setParameter(std::string("JuteMaxbuffer"), juteMaxbuffer); -} - bool UpdateConfigRequest::getNamingAuthEnabled() const { return namingAuthEnabled_; } @@ -115,15 +79,6 @@ void UpdateConfigRequest::setNamingAuthEnabled(bool namingAuthEnabled) { setParameter(std::string("NamingAuthEnabled"), namingAuthEnabled ? "true" : "false"); } -std::string UpdateConfigRequest::getConfigType() const { - return configType_; -} - -void UpdateConfigRequest::setConfigType(const std::string &configType) { - configType_ = configType; - setParameter(std::string("ConfigType"), configType); -} - std::string UpdateConfigRequest::getExtendedTypesEnable() const { return extendedTypesEnable_; } @@ -142,15 +97,6 @@ void UpdateConfigRequest::setAutopurgeSnapRetainCount(const std::string &autopur setParameter(std::string("AutopurgeSnapRetainCount"), autopurgeSnapRetainCount); } -std::string UpdateConfigRequest::getMaxSessionTimeout() const { - return maxSessionTimeout_; -} - -void UpdateConfigRequest::setMaxSessionTimeout(const std::string &maxSessionTimeout) { - maxSessionTimeout_ = maxSessionTimeout; - setParameter(std::string("MaxSessionTimeout"), maxSessionTimeout); -} - bool UpdateConfigRequest::getConfigSecretEnabled() const { return configSecretEnabled_; } @@ -169,24 +115,6 @@ void UpdateConfigRequest::setMCPEnabled(bool mCPEnabled) { setParameter(std::string("MCPEnabled"), mCPEnabled ? "true" : "false"); } -std::string UpdateConfigRequest::getTickTime() const { - return tickTime_; -} - -void UpdateConfigRequest::setTickTime(const std::string &tickTime) { - tickTime_ = tickTime; - setParameter(std::string("TickTime"), tickTime); -} - -std::string UpdateConfigRequest::getClusterId() const { - return clusterId_; -} - -void UpdateConfigRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - std::string UpdateConfigRequest::getSyncLimit() const { return syncLimit_; } @@ -205,6 +133,96 @@ void UpdateConfigRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } +bool UpdateConfigRequest::getTLSEnabled() const { + return tLSEnabled_; +} + +void UpdateConfigRequest::setTLSEnabled(bool tLSEnabled) { + tLSEnabled_ = tLSEnabled; + setParameter(std::string("TLSEnabled"), tLSEnabled ? "true" : "false"); +} + +std::string UpdateConfigRequest::getOpenSuperAcl() const { + return openSuperAcl_; +} + +void UpdateConfigRequest::setOpenSuperAcl(const std::string &openSuperAcl) { + openSuperAcl_ = openSuperAcl; + setBodyParameter(std::string("OpenSuperAcl"), openSuperAcl); +} + +bool UpdateConfigRequest::getEurekaSupported() const { + return eurekaSupported_; +} + +void UpdateConfigRequest::setEurekaSupported(bool eurekaSupported) { + eurekaSupported_ = eurekaSupported; + setParameter(std::string("EurekaSupported"), eurekaSupported ? "true" : "false"); +} + +std::string UpdateConfigRequest::getSnapshotCount() const { + return snapshotCount_; +} + +void UpdateConfigRequest::setSnapshotCount(const std::string &snapshotCount) { + snapshotCount_ = snapshotCount; + setParameter(std::string("SnapshotCount"), snapshotCount); +} + +std::string UpdateConfigRequest::getMinSessionTimeout() const { + return minSessionTimeout_; +} + +void UpdateConfigRequest::setMinSessionTimeout(const std::string &minSessionTimeout) { + minSessionTimeout_ = minSessionTimeout; + setParameter(std::string("MinSessionTimeout"), minSessionTimeout); +} + +std::string UpdateConfigRequest::getJuteMaxbuffer() const { + return juteMaxbuffer_; +} + +void UpdateConfigRequest::setJuteMaxbuffer(const std::string &juteMaxbuffer) { + juteMaxbuffer_ = juteMaxbuffer; + setParameter(std::string("JuteMaxbuffer"), juteMaxbuffer); +} + +std::string UpdateConfigRequest::getConfigType() const { + return configType_; +} + +void UpdateConfigRequest::setConfigType(const std::string &configType) { + configType_ = configType; + setParameter(std::string("ConfigType"), configType); +} + +std::string UpdateConfigRequest::getMaxSessionTimeout() const { + return maxSessionTimeout_; +} + +void UpdateConfigRequest::setMaxSessionTimeout(const std::string &maxSessionTimeout) { + maxSessionTimeout_ = maxSessionTimeout; + setParameter(std::string("MaxSessionTimeout"), maxSessionTimeout); +} + +std::string UpdateConfigRequest::getTickTime() const { + return tickTime_; +} + +void UpdateConfigRequest::setTickTime(const std::string &tickTime) { + tickTime_ = tickTime; + setParameter(std::string("TickTime"), tickTime); +} + +std::string UpdateConfigRequest::getClusterId() const { + return clusterId_; +} + +void UpdateConfigRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + std::string UpdateConfigRequest::getAutopurgePurgeInterval() const { return autopurgePurgeInterval_; } diff --git a/mse/src/model/UpdateEngineNamespaceRequest.cc b/mse/src/model/UpdateEngineNamespaceRequest.cc index 5b10be05e..f02de1d4a 100644 --- a/mse/src/model/UpdateEngineNamespaceRequest.cc +++ b/mse/src/model/UpdateEngineNamespaceRequest.cc @@ -34,6 +34,24 @@ void UpdateEngineNamespaceRequest::setMseSessionId(const std::string &mseSession setParameter(std::string("MseSessionId"), mseSessionId); } +int UpdateEngineNamespaceRequest::getServiceCount() const { + return serviceCount_; +} + +void UpdateEngineNamespaceRequest::setServiceCount(int serviceCount) { + serviceCount_ = serviceCount; + setParameter(std::string("ServiceCount"), std::to_string(serviceCount)); +} + +std::string UpdateEngineNamespaceRequest::getId() const { + return id_; +} + +void UpdateEngineNamespaceRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("Id"), id); +} + std::string UpdateEngineNamespaceRequest::getClusterId() const { return clusterId_; } @@ -52,15 +70,6 @@ void UpdateEngineNamespaceRequest::setInstanceId(const std::string &instanceId) setParameter(std::string("InstanceId"), instanceId); } -int UpdateEngineNamespaceRequest::getServiceCount() const { - return serviceCount_; -} - -void UpdateEngineNamespaceRequest::setServiceCount(int serviceCount) { - serviceCount_ = serviceCount; - setParameter(std::string("ServiceCount"), std::to_string(serviceCount)); -} - std::string UpdateEngineNamespaceRequest::getName() const { return name_; } @@ -79,15 +88,6 @@ void UpdateEngineNamespaceRequest::setAcceptLanguage(const std::string &acceptLa setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string UpdateEngineNamespaceRequest::getId() const { - return id_; -} - -void UpdateEngineNamespaceRequest::setId(const std::string &id) { - id_ = id; - setParameter(std::string("Id"), id); -} - std::string UpdateEngineNamespaceRequest::getDesc() const { return desc_; } diff --git a/mse/src/model/UpdateFlowRuleRequest.cc b/mse/src/model/UpdateFlowRuleRequest.cc new file mode 100644 index 000000000..f989b9ac9 --- /dev/null +++ b/mse/src/model/UpdateFlowRuleRequest.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::UpdateFlowRuleRequest; + +UpdateFlowRuleRequest::UpdateFlowRuleRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateFlowRule") { + setMethod(HttpRequest::Method::Post); +} + +UpdateFlowRuleRequest::~UpdateFlowRuleRequest() {} + +std::string UpdateFlowRuleRequest::getMseSessionId() const { + return mseSessionId_; +} + +void UpdateFlowRuleRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +int UpdateFlowRuleRequest::getControlBehavior() const { + return controlBehavior_; +} + +void UpdateFlowRuleRequest::setControlBehavior(int controlBehavior) { + controlBehavior_ = controlBehavior; + setParameter(std::string("ControlBehavior"), std::to_string(controlBehavior)); +} + +int UpdateFlowRuleRequest::getThreshold() const { + return threshold_; +} + +void UpdateFlowRuleRequest::setThreshold(int threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), std::to_string(threshold)); +} + +std::string UpdateFlowRuleRequest::getAppName() const { + return appName_; +} + +void UpdateFlowRuleRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +bool UpdateFlowRuleRequest::getEnable() const { + return enable_; +} + +void UpdateFlowRuleRequest::setEnable(bool enable) { + enable_ = enable; + setParameter(std::string("Enable"), enable ? "true" : "false"); +} + +std::string UpdateFlowRuleRequest::getAppId() const { + return appId_; +} + +void UpdateFlowRuleRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string UpdateFlowRuleRequest::get_Namespace() const { + return _namespace_; +} + +void UpdateFlowRuleRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string UpdateFlowRuleRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateFlowRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +int UpdateFlowRuleRequest::getMaxQueueingTimeMs() const { + return maxQueueingTimeMs_; +} + +void UpdateFlowRuleRequest::setMaxQueueingTimeMs(int maxQueueingTimeMs) { + maxQueueingTimeMs_ = maxQueueingTimeMs; + setParameter(std::string("MaxQueueingTimeMs"), std::to_string(maxQueueingTimeMs)); +} + +long UpdateFlowRuleRequest::getRuleId() const { + return ruleId_; +} + +void UpdateFlowRuleRequest::setRuleId(long ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), std::to_string(ruleId)); +} + diff --git a/mse/src/model/UpdateFlowRuleResult.cc b/mse/src/model/UpdateFlowRuleResult.cc new file mode 100644 index 000000000..fcb3ca242 --- /dev/null +++ b/mse/src/model/UpdateFlowRuleResult.cc @@ -0,0 +1,89 @@ +/* + * 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; + +UpdateFlowRuleResult::UpdateFlowRuleResult() : + ServiceResult() +{} + +UpdateFlowRuleResult::UpdateFlowRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateFlowRuleResult::~UpdateFlowRuleResult() +{} + +void UpdateFlowRuleResult::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["Namespace"].isNull()) + data_._namespace = dataNode["Namespace"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["Resource"].isNull()) + data_.resource = dataNode["Resource"].asString(); + if(!dataNode["ControlBehavior"].isNull()) + data_.controlBehavior = std::stoi(dataNode["ControlBehavior"].asString()); + if(!dataNode["MaxQueueingTimeMs"].isNull()) + data_.maxQueueingTimeMs = std::stoi(dataNode["MaxQueueingTimeMs"].asString()); + if(!dataNode["Threshold"].isNull()) + data_.threshold = std::stof(dataNode["Threshold"].asString()); + if(!dataNode["Enable"].isNull()) + data_.enable = dataNode["Enable"].asString() == "true"; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateFlowRuleResult::getMessage()const +{ + return message_; +} + +UpdateFlowRuleResult::Data UpdateFlowRuleResult::getData()const +{ + return data_; +} + +std::string UpdateFlowRuleResult::getCode()const +{ + return code_; +} + +bool UpdateFlowRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateGatewayAuthConsumerRequest.cc b/mse/src/model/UpdateGatewayAuthConsumerRequest.cc new file mode 100644 index 000000000..5ce8299ff --- /dev/null +++ b/mse/src/model/UpdateGatewayAuthConsumerRequest.cc @@ -0,0 +1,144 @@ +/* + * 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::UpdateGatewayAuthConsumerRequest; + +UpdateGatewayAuthConsumerRequest::UpdateGatewayAuthConsumerRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayAuthConsumer") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayAuthConsumerRequest::~UpdateGatewayAuthConsumerRequest() {} + +std::string UpdateGatewayAuthConsumerRequest::getMseSessionId() const { + return mseSessionId_; +} + +void UpdateGatewayAuthConsumerRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string UpdateGatewayAuthConsumerRequest::getKeyName() const { + return keyName_; +} + +void UpdateGatewayAuthConsumerRequest::setKeyName(const std::string &keyName) { + keyName_ = keyName; + setParameter(std::string("KeyName"), keyName); +} + +long UpdateGatewayAuthConsumerRequest::getId() const { + return id_; +} + +void UpdateGatewayAuthConsumerRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); +} + +std::string UpdateGatewayAuthConsumerRequest::getTokenPrefix() const { + return tokenPrefix_; +} + +void UpdateGatewayAuthConsumerRequest::setTokenPrefix(const std::string &tokenPrefix) { + tokenPrefix_ = tokenPrefix; + setParameter(std::string("TokenPrefix"), tokenPrefix); +} + +std::string UpdateGatewayAuthConsumerRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayAuthConsumerRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string UpdateGatewayAuthConsumerRequest::getJwks() const { + return jwks_; +} + +void UpdateGatewayAuthConsumerRequest::setJwks(const std::string &jwks) { + jwks_ = jwks; + setParameter(std::string("Jwks"), jwks); +} + +std::string UpdateGatewayAuthConsumerRequest::getDescription() const { + return description_; +} + +void UpdateGatewayAuthConsumerRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string UpdateGatewayAuthConsumerRequest::getTokenPosition() const { + return tokenPosition_; +} + +void UpdateGatewayAuthConsumerRequest::setTokenPosition(const std::string &tokenPosition) { + tokenPosition_ = tokenPosition; + setParameter(std::string("TokenPosition"), tokenPosition); +} + +std::string UpdateGatewayAuthConsumerRequest::getEncodeType() const { + return encodeType_; +} + +void UpdateGatewayAuthConsumerRequest::setEncodeType(const std::string &encodeType) { + encodeType_ = encodeType; + setParameter(std::string("EncodeType"), encodeType); +} + +std::string UpdateGatewayAuthConsumerRequest::getKeyValue() const { + return keyValue_; +} + +void UpdateGatewayAuthConsumerRequest::setKeyValue(const std::string &keyValue) { + keyValue_ = keyValue; + setParameter(std::string("KeyValue"), keyValue); +} + +bool UpdateGatewayAuthConsumerRequest::getTokenPass() const { + return tokenPass_; +} + +void UpdateGatewayAuthConsumerRequest::setTokenPass(bool tokenPass) { + tokenPass_ = tokenPass; + setParameter(std::string("TokenPass"), tokenPass ? "true" : "false"); +} + +std::string UpdateGatewayAuthConsumerRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateGatewayAuthConsumerRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string UpdateGatewayAuthConsumerRequest::getTokenName() const { + return tokenName_; +} + +void UpdateGatewayAuthConsumerRequest::setTokenName(const std::string &tokenName) { + tokenName_ = tokenName; + setParameter(std::string("TokenName"), tokenName); +} + diff --git a/mse/src/model/UpdateGatewayAuthConsumerResourceRequest.cc b/mse/src/model/UpdateGatewayAuthConsumerResourceRequest.cc new file mode 100644 index 000000000..d87ad5db8 --- /dev/null +++ b/mse/src/model/UpdateGatewayAuthConsumerResourceRequest.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::UpdateGatewayAuthConsumerResourceRequest; + +UpdateGatewayAuthConsumerResourceRequest::UpdateGatewayAuthConsumerResourceRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayAuthConsumerResource") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayAuthConsumerResourceRequest::~UpdateGatewayAuthConsumerResourceRequest() {} + +std::string UpdateGatewayAuthConsumerResourceRequest::getMseSessionId() const { + return mseSessionId_; +} + +void UpdateGatewayAuthConsumerResourceRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string UpdateGatewayAuthConsumerResourceRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayAuthConsumerResourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +long UpdateGatewayAuthConsumerResourceRequest::getConsumerId() const { + return consumerId_; +} + +void UpdateGatewayAuthConsumerResourceRequest::setConsumerId(long consumerId) { + consumerId_ = consumerId; + setParameter(std::string("ConsumerId"), std::to_string(consumerId)); +} + +std::vector UpdateGatewayAuthConsumerResourceRequest::getResourceList() const { + return resourceList_; +} + +void UpdateGatewayAuthConsumerResourceRequest::setResourceList(const std::vector &resourceList) { + resourceList_ = resourceList; + for(int dep1 = 0; dep1 != resourceList.size(); dep1++) { + setParameter(std::string("ResourceList") + "." + std::to_string(dep1 + 1) + ".RouteId", std::to_string(resourceList[dep1].routeId)); + setParameter(std::string("ResourceList") + "." + std::to_string(dep1 + 1) + ".RouteName", resourceList[dep1].routeName); + } +} + +std::string UpdateGatewayAuthConsumerResourceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateGatewayAuthConsumerResourceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpdateGatewayAuthConsumerResourceResult.cc b/mse/src/model/UpdateGatewayAuthConsumerResourceResult.cc new file mode 100644 index 000000000..cdee16a25 --- /dev/null +++ b/mse/src/model/UpdateGatewayAuthConsumerResourceResult.cc @@ -0,0 +1,100 @@ +/* + * 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; + +UpdateGatewayAuthConsumerResourceResult::UpdateGatewayAuthConsumerResourceResult() : + ServiceResult() +{} + +UpdateGatewayAuthConsumerResourceResult::UpdateGatewayAuthConsumerResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayAuthConsumerResourceResult::~UpdateGatewayAuthConsumerResourceResult() +{} + +void UpdateGatewayAuthConsumerResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +std::string UpdateGatewayAuthConsumerResourceResult::getMessage()const +{ + return message_; +} + +int UpdateGatewayAuthConsumerResourceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateGatewayAuthConsumerResourceResult::getDynamicCode()const +{ + return dynamicCode_; +} + +bool UpdateGatewayAuthConsumerResourceResult::getData()const +{ + return data_; +} + +std::string UpdateGatewayAuthConsumerResourceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateGatewayAuthConsumerResourceResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int UpdateGatewayAuthConsumerResourceResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayAuthConsumerResourceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateGatewayAuthConsumerResourceStatusRequest.cc b/mse/src/model/UpdateGatewayAuthConsumerResourceStatusRequest.cc new file mode 100644 index 000000000..697cfaeeb --- /dev/null +++ b/mse/src/model/UpdateGatewayAuthConsumerResourceStatusRequest.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::UpdateGatewayAuthConsumerResourceStatusRequest; + +UpdateGatewayAuthConsumerResourceStatusRequest::UpdateGatewayAuthConsumerResourceStatusRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayAuthConsumerResourceStatus") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayAuthConsumerResourceStatusRequest::~UpdateGatewayAuthConsumerResourceStatusRequest() {} + +std::string UpdateGatewayAuthConsumerResourceStatusRequest::getMseSessionId() const { + return mseSessionId_; +} + +void UpdateGatewayAuthConsumerResourceStatusRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string UpdateGatewayAuthConsumerResourceStatusRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayAuthConsumerResourceStatusRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +long UpdateGatewayAuthConsumerResourceStatusRequest::getConsumerId() const { + return consumerId_; +} + +void UpdateGatewayAuthConsumerResourceStatusRequest::setConsumerId(long consumerId) { + consumerId_ = consumerId; + setParameter(std::string("ConsumerId"), std::to_string(consumerId)); +} + +std::string UpdateGatewayAuthConsumerResourceStatusRequest::getIdList() const { + return idList_; +} + +void UpdateGatewayAuthConsumerResourceStatusRequest::setIdList(const std::string &idList) { + idList_ = idList; + setParameter(std::string("IdList"), idList); +} + +bool UpdateGatewayAuthConsumerResourceStatusRequest::getResourceStatus() const { + return resourceStatus_; +} + +void UpdateGatewayAuthConsumerResourceStatusRequest::setResourceStatus(bool resourceStatus) { + resourceStatus_ = resourceStatus; + setParameter(std::string("ResourceStatus"), resourceStatus ? "true" : "false"); +} + +std::string UpdateGatewayAuthConsumerResourceStatusRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateGatewayAuthConsumerResourceStatusRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpdateGatewayAuthConsumerResourceStatusResult.cc b/mse/src/model/UpdateGatewayAuthConsumerResourceStatusResult.cc new file mode 100644 index 000000000..7e89f4143 --- /dev/null +++ b/mse/src/model/UpdateGatewayAuthConsumerResourceStatusResult.cc @@ -0,0 +1,100 @@ +/* + * 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; + +UpdateGatewayAuthConsumerResourceStatusResult::UpdateGatewayAuthConsumerResourceStatusResult() : + ServiceResult() +{} + +UpdateGatewayAuthConsumerResourceStatusResult::UpdateGatewayAuthConsumerResourceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayAuthConsumerResourceStatusResult::~UpdateGatewayAuthConsumerResourceStatusResult() +{} + +void UpdateGatewayAuthConsumerResourceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +std::string UpdateGatewayAuthConsumerResourceStatusResult::getMessage()const +{ + return message_; +} + +int UpdateGatewayAuthConsumerResourceStatusResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateGatewayAuthConsumerResourceStatusResult::getDynamicCode()const +{ + return dynamicCode_; +} + +bool UpdateGatewayAuthConsumerResourceStatusResult::getData()const +{ + return data_; +} + +std::string UpdateGatewayAuthConsumerResourceStatusResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateGatewayAuthConsumerResourceStatusResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int UpdateGatewayAuthConsumerResourceStatusResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayAuthConsumerResourceStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateGatewayAuthConsumerResult.cc b/mse/src/model/UpdateGatewayAuthConsumerResult.cc new file mode 100644 index 000000000..73642b301 --- /dev/null +++ b/mse/src/model/UpdateGatewayAuthConsumerResult.cc @@ -0,0 +1,100 @@ +/* + * 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; + +UpdateGatewayAuthConsumerResult::UpdateGatewayAuthConsumerResult() : + ServiceResult() +{} + +UpdateGatewayAuthConsumerResult::UpdateGatewayAuthConsumerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayAuthConsumerResult::~UpdateGatewayAuthConsumerResult() +{} + +void UpdateGatewayAuthConsumerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string UpdateGatewayAuthConsumerResult::getMessage()const +{ + return message_; +} + +int UpdateGatewayAuthConsumerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateGatewayAuthConsumerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +long UpdateGatewayAuthConsumerResult::getData()const +{ + return data_; +} + +std::string UpdateGatewayAuthConsumerResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateGatewayAuthConsumerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int UpdateGatewayAuthConsumerResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayAuthConsumerResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateGatewayAuthConsumerStatusRequest.cc b/mse/src/model/UpdateGatewayAuthConsumerStatusRequest.cc new file mode 100644 index 000000000..396dfc3ca --- /dev/null +++ b/mse/src/model/UpdateGatewayAuthConsumerStatusRequest.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::UpdateGatewayAuthConsumerStatusRequest; + +UpdateGatewayAuthConsumerStatusRequest::UpdateGatewayAuthConsumerStatusRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayAuthConsumerStatus") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayAuthConsumerStatusRequest::~UpdateGatewayAuthConsumerStatusRequest() {} + +std::string UpdateGatewayAuthConsumerStatusRequest::getMseSessionId() const { + return mseSessionId_; +} + +void UpdateGatewayAuthConsumerStatusRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string UpdateGatewayAuthConsumerStatusRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayAuthConsumerStatusRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +long UpdateGatewayAuthConsumerStatusRequest::getId() const { + return id_; +} + +void UpdateGatewayAuthConsumerStatusRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); +} + +bool UpdateGatewayAuthConsumerStatusRequest::getConsumerStatus() const { + return consumerStatus_; +} + +void UpdateGatewayAuthConsumerStatusRequest::setConsumerStatus(bool consumerStatus) { + consumerStatus_ = consumerStatus; + setParameter(std::string("ConsumerStatus"), consumerStatus ? "true" : "false"); +} + +std::string UpdateGatewayAuthConsumerStatusRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateGatewayAuthConsumerStatusRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpdateGatewayAuthConsumerStatusResult.cc b/mse/src/model/UpdateGatewayAuthConsumerStatusResult.cc new file mode 100644 index 000000000..4983d03d4 --- /dev/null +++ b/mse/src/model/UpdateGatewayAuthConsumerStatusResult.cc @@ -0,0 +1,100 @@ +/* + * 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; + +UpdateGatewayAuthConsumerStatusResult::UpdateGatewayAuthConsumerStatusResult() : + ServiceResult() +{} + +UpdateGatewayAuthConsumerStatusResult::UpdateGatewayAuthConsumerStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayAuthConsumerStatusResult::~UpdateGatewayAuthConsumerStatusResult() +{} + +void UpdateGatewayAuthConsumerStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +std::string UpdateGatewayAuthConsumerStatusResult::getMessage()const +{ + return message_; +} + +int UpdateGatewayAuthConsumerStatusResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateGatewayAuthConsumerStatusResult::getDynamicCode()const +{ + return dynamicCode_; +} + +bool UpdateGatewayAuthConsumerStatusResult::getData()const +{ + return data_; +} + +std::string UpdateGatewayAuthConsumerStatusResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateGatewayAuthConsumerStatusResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int UpdateGatewayAuthConsumerStatusResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayAuthConsumerStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateGatewayRouteAuthRequest.cc b/mse/src/model/UpdateGatewayRouteAuthRequest.cc new file mode 100644 index 000000000..0c53bcf92 --- /dev/null +++ b/mse/src/model/UpdateGatewayRouteAuthRequest.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::UpdateGatewayRouteAuthRequest; + +UpdateGatewayRouteAuthRequest::UpdateGatewayRouteAuthRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayRouteAuth") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayRouteAuthRequest::~UpdateGatewayRouteAuthRequest() {} + +std::string UpdateGatewayRouteAuthRequest::getMseSessionId() const { + return mseSessionId_; +} + +void UpdateGatewayRouteAuthRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string UpdateGatewayRouteAuthRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayRouteAuthRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +long UpdateGatewayRouteAuthRequest::getId() const { + return id_; +} + +void UpdateGatewayRouteAuthRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); +} + +long UpdateGatewayRouteAuthRequest::getGatewayId() const { + return gatewayId_; +} + +void UpdateGatewayRouteAuthRequest::setGatewayId(long gatewayId) { + gatewayId_ = gatewayId; + setParameter(std::string("GatewayId"), std::to_string(gatewayId)); +} + +std::string UpdateGatewayRouteAuthRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateGatewayRouteAuthRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +UpdateGatewayRouteAuthRequest::AuthJSON UpdateGatewayRouteAuthRequest::getAuthJSON() const { + return authJSON_; +} + +void UpdateGatewayRouteAuthRequest::setAuthJSON(const UpdateGatewayRouteAuthRequest::AuthJSON &authJSON) { + authJSON_ = authJSON; + setParameter(std::string("AuthJSON") + ".Type", authJSON.type); +} + diff --git a/mse/src/model/UpdateGatewayRouteAuthResult.cc b/mse/src/model/UpdateGatewayRouteAuthResult.cc new file mode 100644 index 000000000..08a252265 --- /dev/null +++ b/mse/src/model/UpdateGatewayRouteAuthResult.cc @@ -0,0 +1,100 @@ +/* + * 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; + +UpdateGatewayRouteAuthResult::UpdateGatewayRouteAuthResult() : + ServiceResult() +{} + +UpdateGatewayRouteAuthResult::UpdateGatewayRouteAuthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayRouteAuthResult::~UpdateGatewayRouteAuthResult() +{} + +void UpdateGatewayRouteAuthResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string UpdateGatewayRouteAuthResult::getMessage()const +{ + return message_; +} + +int UpdateGatewayRouteAuthResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateGatewayRouteAuthResult::getDynamicCode()const +{ + return dynamicCode_; +} + +long UpdateGatewayRouteAuthResult::getData()const +{ + return data_; +} + +std::string UpdateGatewayRouteAuthResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateGatewayRouteAuthResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int UpdateGatewayRouteAuthResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayRouteAuthResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateGatewayRouteRequest.cc b/mse/src/model/UpdateGatewayRouteRequest.cc index 6178a44c4..948ec3f41 100644 --- a/mse/src/model/UpdateGatewayRouteRequest.cc +++ b/mse/src/model/UpdateGatewayRouteRequest.cc @@ -34,24 +34,6 @@ void UpdateGatewayRouteRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } -std::string UpdateGatewayRouteRequest::getGatewayUniqueId() const { - return gatewayUniqueId_; -} - -void UpdateGatewayRouteRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { - gatewayUniqueId_ = gatewayUniqueId; - setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); -} - -std::string UpdateGatewayRouteRequest::getDestinationType() const { - return destinationType_; -} - -void UpdateGatewayRouteRequest::setDestinationType(const std::string &destinationType) { - destinationType_ = destinationType; - setParameter(std::string("DestinationType"), destinationType); -} - std::string UpdateGatewayRouteRequest::getDomainIdListJSON() const { return domainIdListJSON_; } @@ -79,15 +61,6 @@ void UpdateGatewayRouteRequest::setGatewayId(long gatewayId) { setParameter(std::string("GatewayId"), std::to_string(gatewayId)); } -int UpdateGatewayRouteRequest::getRouteOrder() const { - return routeOrder_; -} - -void UpdateGatewayRouteRequest::setRouteOrder(int routeOrder) { - routeOrder_ = routeOrder; - setParameter(std::string("RouteOrder"), std::to_string(routeOrder)); -} - bool UpdateGatewayRouteRequest::getEnableWaf() const { return enableWaf_; } @@ -97,6 +70,104 @@ void UpdateGatewayRouteRequest::setEnableWaf(bool enableWaf) { setParameter(std::string("EnableWaf"), enableWaf ? "true" : "false"); } +UpdateGatewayRouteRequest::Predicates UpdateGatewayRouteRequest::getPredicates() const { + return predicates_; +} + +void UpdateGatewayRouteRequest::setPredicates(const UpdateGatewayRouteRequest::Predicates &predicates) { + predicates_ = predicates; + setParameter(std::string("Predicates") + ".PathPredicates.Path", predicates.pathPredicates.path); + setParameter(std::string("Predicates") + ".PathPredicates.IgnoreCase", predicates.pathPredicates.ignoreCase ? "true" : "false"); + setParameter(std::string("Predicates") + ".PathPredicates.Type", predicates.pathPredicates.type); + for(int dep1 = 0; dep1 != predicates.methodPredicates.size(); dep1++) { + setParameter(std::string("Predicates") + ".MethodPredicates." + std::to_string(dep1 + 1), predicates.methodPredicates[dep1]); + } + for(int dep1 = 0; dep1 != predicates.headerPredicates.size(); dep1++) { + setParameter(std::string("Predicates") + ".HeaderPredicates." + std::to_string(dep1 + 1) + ".Type", predicates.headerPredicates[dep1].type); + setParameter(std::string("Predicates") + ".HeaderPredicates." + std::to_string(dep1 + 1) + ".Value", predicates.headerPredicates[dep1].value); + setParameter(std::string("Predicates") + ".HeaderPredicates." + std::to_string(dep1 + 1) + ".Key", predicates.headerPredicates[dep1].key); + } + for(int dep1 = 0; dep1 != predicates.queryPredicates.size(); dep1++) { + setParameter(std::string("Predicates") + ".QueryPredicates." + std::to_string(dep1 + 1) + ".Type", predicates.queryPredicates[dep1].type); + setParameter(std::string("Predicates") + ".QueryPredicates." + std::to_string(dep1 + 1) + ".Value", predicates.queryPredicates[dep1].value); + setParameter(std::string("Predicates") + ".QueryPredicates." + std::to_string(dep1 + 1) + ".Key", predicates.queryPredicates[dep1].key); + } +} + +UpdateGatewayRouteRequest::DirectResponseJSON UpdateGatewayRouteRequest::getDirectResponseJSON() const { + return directResponseJSON_; +} + +void UpdateGatewayRouteRequest::setDirectResponseJSON(const UpdateGatewayRouteRequest::DirectResponseJSON &directResponseJSON) { + directResponseJSON_ = directResponseJSON; + setParameter(std::string("DirectResponseJSON") + ".Code", std::to_string(directResponseJSON.code)); + setParameter(std::string("DirectResponseJSON") + ".Body", directResponseJSON.body); +} + +std::string UpdateGatewayRouteRequest::getName() const { + return name_; +} + +void UpdateGatewayRouteRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::vector UpdateGatewayRouteRequest::getFallbackServices() const { + return fallbackServices_; +} + +void UpdateGatewayRouteRequest::setFallbackServices(const std::vector &fallbackServices) { + fallbackServices_ = fallbackServices; + for(int dep1 = 0; dep1 != fallbackServices.size(); dep1++) { + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".AgreementType", fallbackServices[dep1].agreementType); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Name", fallbackServices[dep1].name); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Namespace", fallbackServices[dep1]._namespace); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".SourceType", fallbackServices[dep1].sourceType); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".ServiceId", std::to_string(fallbackServices[dep1].serviceId)); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Percent", std::to_string(fallbackServices[dep1].percent)); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Version", fallbackServices[dep1].version); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".GroupName", fallbackServices[dep1].groupName); + setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".ServicePort", std::to_string(fallbackServices[dep1].servicePort)); + } +} + +bool UpdateGatewayRouteRequest::getFallback() const { + return fallback_; +} + +void UpdateGatewayRouteRequest::setFallback(bool fallback) { + fallback_ = fallback; + setParameter(std::string("Fallback"), fallback ? "true" : "false"); +} + +std::string UpdateGatewayRouteRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayRouteRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string UpdateGatewayRouteRequest::getDestinationType() const { + return destinationType_; +} + +void UpdateGatewayRouteRequest::setDestinationType(const std::string &destinationType) { + destinationType_ = destinationType; + setParameter(std::string("DestinationType"), destinationType); +} + +int UpdateGatewayRouteRequest::getRouteOrder() const { + return routeOrder_; +} + +void UpdateGatewayRouteRequest::setRouteOrder(int routeOrder) { + routeOrder_ = routeOrder; + setParameter(std::string("RouteOrder"), std::to_string(routeOrder)); +} + std::vector UpdateGatewayRouteRequest::getServices() const { return services_; } @@ -133,30 +204,6 @@ void UpdateGatewayRouteRequest::setServices(const std::vector UpdateGatewayRouteRequest::getFallbackServices() const { - return fallbackServices_; -} - -void UpdateGatewayRouteRequest::setFallbackServices(const std::vector &fallbackServices) { - fallbackServices_ = fallbackServices; - for(int dep1 = 0; dep1 != fallbackServices.size(); dep1++) { - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".AgreementType", fallbackServices[dep1].agreementType); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Name", fallbackServices[dep1].name); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Namespace", fallbackServices[dep1]._namespace); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".SourceType", fallbackServices[dep1].sourceType); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".ServiceId", std::to_string(fallbackServices[dep1].serviceId)); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Percent", std::to_string(fallbackServices[dep1].percent)); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".Version", fallbackServices[dep1].version); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".GroupName", fallbackServices[dep1].groupName); - setParameter(std::string("FallbackServices") + "." + std::to_string(dep1 + 1) + ".ServicePort", std::to_string(fallbackServices[dep1].servicePort)); - } -} - -bool UpdateGatewayRouteRequest::getFallback() const { - return fallback_; -} - -void UpdateGatewayRouteRequest::setFallback(bool fallback) { - fallback_ = fallback; - setParameter(std::string("Fallback"), fallback ? "true" : "false"); -} - diff --git a/mse/src/model/UpdateGatewayRouteResult.cc b/mse/src/model/UpdateGatewayRouteResult.cc index 04321a8e8..0b68c235a 100644 --- a/mse/src/model/UpdateGatewayRouteResult.cc +++ b/mse/src/model/UpdateGatewayRouteResult.cc @@ -49,6 +49,8 @@ void UpdateGatewayRouteResult::parse(const std::string &payload) success_ = value["Success"].asString() == "true"; if(!value["Data"].isNull()) data_ = std::stol(value["Data"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } @@ -67,6 +69,11 @@ long UpdateGatewayRouteResult::getData()const return data_; } +std::string UpdateGatewayRouteResult::getErrorCode()const +{ + return errorCode_; +} + int UpdateGatewayRouteResult::getCode()const { return code_; diff --git a/mse/src/model/UpdateImageRequest.cc b/mse/src/model/UpdateImageRequest.cc index 529a43e22..a276d5802 100644 --- a/mse/src/model/UpdateImageRequest.cc +++ b/mse/src/model/UpdateImageRequest.cc @@ -34,6 +34,15 @@ void UpdateImageRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } +std::string UpdateImageRequest::getVersionCode() const { + return versionCode_; +} + +void UpdateImageRequest::setVersionCode(const std::string &versionCode) { + versionCode_ = versionCode; + setParameter(std::string("VersionCode"), versionCode); +} + std::string UpdateImageRequest::getClusterId() const { return clusterId_; } @@ -52,12 +61,3 @@ void UpdateImageRequest::setAcceptLanguage(const std::string &acceptLanguage) { setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string UpdateImageRequest::getVersionCode() const { - return versionCode_; -} - -void UpdateImageRequest::setVersionCode(const std::string &versionCode) { - versionCode_ = versionCode; - setParameter(std::string("VersionCode"), versionCode); -} - diff --git a/mse/src/model/UpdateNacosClusterRequest.cc b/mse/src/model/UpdateNacosClusterRequest.cc index 65691befc..d14a8ec59 100644 --- a/mse/src/model/UpdateNacosClusterRequest.cc +++ b/mse/src/model/UpdateNacosClusterRequest.cc @@ -52,6 +52,24 @@ void UpdateNacosClusterRequest::setCheckPort(int checkPort) { setParameter(std::string("CheckPort"), std::to_string(checkPort)); } +std::string UpdateNacosClusterRequest::getNamespaceId() const { + return namespaceId_; +} + +void UpdateNacosClusterRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string UpdateNacosClusterRequest::getServiceName() const { + return serviceName_; +} + +void UpdateNacosClusterRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + std::string UpdateNacosClusterRequest::getGroupName() const { return groupName_; } @@ -70,15 +88,6 @@ void UpdateNacosClusterRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } -std::string UpdateNacosClusterRequest::getNamespaceId() const { - return namespaceId_; -} - -void UpdateNacosClusterRequest::setNamespaceId(const std::string &namespaceId) { - namespaceId_ = namespaceId; - setParameter(std::string("NamespaceId"), namespaceId); -} - std::string UpdateNacosClusterRequest::getHealthChecker() const { return healthChecker_; } @@ -97,15 +106,6 @@ void UpdateNacosClusterRequest::setAcceptLanguage(const std::string &acceptLangu setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string UpdateNacosClusterRequest::getServiceName() const { - return serviceName_; -} - -void UpdateNacosClusterRequest::setServiceName(const std::string &serviceName) { - serviceName_ = serviceName; - setParameter(std::string("ServiceName"), serviceName); -} - bool UpdateNacosClusterRequest::getUseInstancePortForCheck() const { return useInstancePortForCheck_; } diff --git a/mse/src/model/UpdateNacosConfigRequest.cc b/mse/src/model/UpdateNacosConfigRequest.cc index 01781a3df..cbd84fb95 100644 --- a/mse/src/model/UpdateNacosConfigRequest.cc +++ b/mse/src/model/UpdateNacosConfigRequest.cc @@ -52,15 +52,6 @@ void UpdateNacosConfigRequest::setType(const std::string &type) { setParameter(std::string("Type"), type); } -std::string UpdateNacosConfigRequest::getContent() const { - return content_; -} - -void UpdateNacosConfigRequest::setContent(const std::string &content) { - content_ = content; - setParameter(std::string("Content"), content); -} - std::string UpdateNacosConfigRequest::getAppName() const { return appName_; } @@ -115,6 +106,24 @@ void UpdateNacosConfigRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } +std::string UpdateNacosConfigRequest::getDesc() const { + return desc_; +} + +void UpdateNacosConfigRequest::setDesc(const std::string &desc) { + desc_ = desc; + setParameter(std::string("Desc"), desc); +} + +std::string UpdateNacosConfigRequest::getContent() const { + return content_; +} + +void UpdateNacosConfigRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); +} + std::string UpdateNacosConfigRequest::getDataId() const { return dataId_; } @@ -133,15 +142,6 @@ void UpdateNacosConfigRequest::setAcceptLanguage(const std::string &acceptLangua setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string UpdateNacosConfigRequest::getDesc() const { - return desc_; -} - -void UpdateNacosConfigRequest::setDesc(const std::string &desc) { - desc_ = desc; - setParameter(std::string("Desc"), desc); -} - std::string UpdateNacosConfigRequest::getMd5() const { return md5_; } diff --git a/mse/src/model/UpdateNacosInstanceRequest.cc b/mse/src/model/UpdateNacosInstanceRequest.cc index cfb1f67e2..e88fd96f1 100644 --- a/mse/src/model/UpdateNacosInstanceRequest.cc +++ b/mse/src/model/UpdateNacosInstanceRequest.cc @@ -61,15 +61,6 @@ void UpdateNacosInstanceRequest::setEphemeral(bool ephemeral) { setParameter(std::string("Ephemeral"), ephemeral ? "true" : "false"); } -bool UpdateNacosInstanceRequest::getEnabled() const { - return enabled_; -} - -void UpdateNacosInstanceRequest::setEnabled(bool enabled) { - enabled_ = enabled; - setParameter(std::string("Enabled"), enabled ? "true" : "false"); -} - std::string UpdateNacosInstanceRequest::getNamespaceId() const { return namespaceId_; } @@ -79,15 +70,6 @@ void UpdateNacosInstanceRequest::setNamespaceId(const std::string &namespaceId) setParameter(std::string("NamespaceId"), namespaceId); } -std::string UpdateNacosInstanceRequest::getServiceName() const { - return serviceName_; -} - -void UpdateNacosInstanceRequest::setServiceName(const std::string &serviceName) { - serviceName_ = serviceName; - setParameter(std::string("ServiceName"), serviceName); -} - std::string UpdateNacosInstanceRequest::getIp() const { return ip_; } @@ -133,6 +115,24 @@ void UpdateNacosInstanceRequest::setPort(int port) { setParameter(std::string("Port"), std::to_string(port)); } +bool UpdateNacosInstanceRequest::getEnabled() const { + return enabled_; +} + +void UpdateNacosInstanceRequest::setEnabled(bool enabled) { + enabled_ = enabled; + setParameter(std::string("Enabled"), enabled ? "true" : "false"); +} + +std::string UpdateNacosInstanceRequest::getServiceName() const { + return serviceName_; +} + +void UpdateNacosInstanceRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + std::string UpdateNacosInstanceRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/UpdateNacosServiceRequest.cc b/mse/src/model/UpdateNacosServiceRequest.cc index 95ea724e4..d6e89f79d 100644 --- a/mse/src/model/UpdateNacosServiceRequest.cc +++ b/mse/src/model/UpdateNacosServiceRequest.cc @@ -34,6 +34,24 @@ void UpdateNacosServiceRequest::setMseSessionId(const std::string &mseSessionId) setParameter(std::string("MseSessionId"), mseSessionId); } +std::string UpdateNacosServiceRequest::getNamespaceId() const { + return namespaceId_; +} + +void UpdateNacosServiceRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string UpdateNacosServiceRequest::getServiceName() const { + return serviceName_; +} + +void UpdateNacosServiceRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + std::string UpdateNacosServiceRequest::getClusterId() const { return clusterId_; } @@ -61,15 +79,6 @@ void UpdateNacosServiceRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } -std::string UpdateNacosServiceRequest::getNamespaceId() const { - return namespaceId_; -} - -void UpdateNacosServiceRequest::setNamespaceId(const std::string &namespaceId) { - namespaceId_ = namespaceId; - setParameter(std::string("NamespaceId"), namespaceId); -} - std::string UpdateNacosServiceRequest::getAcceptLanguage() const { return acceptLanguage_; } @@ -79,15 +88,6 @@ void UpdateNacosServiceRequest::setAcceptLanguage(const std::string &acceptLangu setParameter(std::string("AcceptLanguage"), acceptLanguage); } -std::string UpdateNacosServiceRequest::getServiceName() const { - return serviceName_; -} - -void UpdateNacosServiceRequest::setServiceName(const std::string &serviceName) { - serviceName_ = serviceName; - setParameter(std::string("ServiceName"), serviceName); -} - std::string UpdateNacosServiceRequest::getProtectThreshold() const { return protectThreshold_; } diff --git a/mse/src/model/UpdateZnodeRequest.cc b/mse/src/model/UpdateZnodeRequest.cc index 107f3ed7c..1720cedfb 100644 --- a/mse/src/model/UpdateZnodeRequest.cc +++ b/mse/src/model/UpdateZnodeRequest.cc @@ -43,15 +43,6 @@ void UpdateZnodeRequest::setData(const std::string &data) { setParameter(std::string("Data"), data); } -std::string UpdateZnodeRequest::getClusterId() const { - return clusterId_; -} - -void UpdateZnodeRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - std::string UpdateZnodeRequest::getPath() const { return path_; } @@ -70,6 +61,15 @@ void UpdateZnodeRequest::setRequestPars(const std::string &requestPars) { setParameter(std::string("RequestPars"), requestPars); } +std::string UpdateZnodeRequest::getClusterId() const { + return clusterId_; +} + +void UpdateZnodeRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + std::string UpdateZnodeRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/mse/src/model/UpgradeClusterRequest.cc b/mse/src/model/UpgradeClusterRequest.cc index 32efbf8ef..55bf7e79d 100644 --- a/mse/src/model/UpgradeClusterRequest.cc +++ b/mse/src/model/UpgradeClusterRequest.cc @@ -25,15 +25,6 @@ UpgradeClusterRequest::UpgradeClusterRequest() UpgradeClusterRequest::~UpgradeClusterRequest() {} -std::string UpgradeClusterRequest::getUpgradeVersion() const { - return upgradeVersion_; -} - -void UpgradeClusterRequest::setUpgradeVersion(const std::string &upgradeVersion) { - upgradeVersion_ = upgradeVersion; - setParameter(std::string("UpgradeVersion"), upgradeVersion); -} - std::string UpgradeClusterRequest::getMseSessionId() const { return mseSessionId_; } @@ -43,15 +34,6 @@ void UpgradeClusterRequest::setMseSessionId(const std::string &mseSessionId) { setParameter(std::string("MseSessionId"), mseSessionId); } -std::string UpgradeClusterRequest::getInstanceId() const { - return instanceId_; -} - -void UpgradeClusterRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - std::string UpgradeClusterRequest::getRequestPars() const { return requestPars_; } @@ -61,6 +43,24 @@ void UpgradeClusterRequest::setRequestPars(const std::string &requestPars) { setParameter(std::string("RequestPars"), requestPars); } +std::string UpgradeClusterRequest::getUpgradeVersion() const { + return upgradeVersion_; +} + +void UpgradeClusterRequest::setUpgradeVersion(const std::string &upgradeVersion) { + upgradeVersion_ = upgradeVersion; + setParameter(std::string("UpgradeVersion"), upgradeVersion); +} + +std::string UpgradeClusterRequest::getInstanceId() const { + return instanceId_; +} + +void UpgradeClusterRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + std::string UpgradeClusterRequest::getAcceptLanguage() const { return acceptLanguage_; }