From 8383b37798c487c620aede650d73200ae8fd53b3 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 19 Jan 2022 03:56:47 +0000 Subject: [PATCH] ReportOneAgentInfo. --- CHANGELOG | 4 + VERSION | 2 +- mse/CMakeLists.txt | 522 +++ mse/include/alibabacloud/mse/MseClient.h | 926 ++++ mse/include/alibabacloud/mse/MseExport.h | 32 + .../mse/model/AddAuthResourceRequest.h | 54 + .../mse/model/AddAuthResourceResult.h | 59 + .../mse/model/AddBlackWhiteListRequest.h | 60 + .../mse/model/AddBlackWhiteListResult.h | 59 + .../mse/model/AddGatewayDomainRequest.h | 57 + .../mse/model/AddGatewayDomainResult.h | 59 + .../mse/model/AddGatewayRequest.h | 72 + .../alibabacloud/mse/model/AddGatewayResult.h | 63 + .../model/AddGatewayServiceVersionRequest.h | 51 + .../model/AddGatewayServiceVersionResult.h | 59 + .../mse/model/AddGatewaySlbRequest.h | 51 + .../mse/model/AddGatewaySlbResult.h | 59 + .../mse/model/AddMockRuleRequest.h | 75 + .../mse/model/AddMockRuleResult.h | 76 + .../mse/model/AddSSLCertRequest.h | 51 + .../alibabacloud/mse/model/AddSSLCertResult.h | 59 + .../mse/model/AddServiceSourceRequest.h | 57 + .../mse/model/AddServiceSourceResult.h | 59 + .../mse/model/CloneNacosConfigRequest.h | 57 + .../mse/model/CloneNacosConfigResult.h | 80 + .../mse/model/CreateAlarmRuleRequest.h | 72 + .../mse/model/CreateAlarmRuleResult.h | 55 + .../mse/model/CreateApplicationRequest.h | 57 + .../mse/model/CreateApplicationResult.h | 73 + .../mse/model/CreateClusterRequest.h | 90 + .../mse/model/CreateClusterResult.h | 59 + .../mse/model/CreateEngineNamespaceRequest.h | 57 + .../mse/model/CreateEngineNamespaceResult.h | 69 + .../mse/model/CreateNacosConfigRequest.h | 72 + .../mse/model/CreateNacosConfigResult.h | 59 + .../mse/model/CreateNacosInstanceRequest.h | 75 + .../mse/model/CreateNacosInstanceResult.h | 59 + .../mse/model/CreateNacosServiceRequest.h | 63 + .../mse/model/CreateNacosServiceResult.h | 59 + .../mse/model/CreateZnodeRequest.h | 51 + .../mse/model/CreateZnodeResult.h | 66 + .../mse/model/DeleteAlarmRuleRequest.h | 48 + .../mse/model/DeleteAlarmRuleResult.h | 57 + .../mse/model/DeleteAuthResourceRequest.h | 48 + .../mse/model/DeleteAuthResourceResult.h | 72 + .../mse/model/DeleteClusterRequest.h | 48 + .../mse/model/DeleteClusterResult.h | 57 + .../mse/model/DeleteEngineNamespaceRequest.h | 51 + .../mse/model/DeleteEngineNamespaceResult.h | 57 + .../mse/model/DeleteGatewayDomainRequest.h | 48 + .../mse/model/DeleteGatewayDomainResult.h | 71 + .../mse/model/DeleteGatewayRequest.h | 48 + .../mse/model/DeleteGatewayResult.h | 75 + .../DeleteGatewayServiceVersionRequest.h | 51 + .../model/DeleteGatewayServiceVersionResult.h | 59 + .../mse/model/DeleteGatewaySlbRequest.h | 51 + .../mse/model/DeleteGatewaySlbResult.h | 59 + .../mse/model/DeleteNacosConfigRequest.h | 57 + .../mse/model/DeleteNacosConfigResult.h | 59 + .../mse/model/DeleteNacosConfigsRequest.h | 51 + .../mse/model/DeleteNacosConfigsResult.h | 59 + .../mse/model/DeleteNacosServiceRequest.h | 54 + .../mse/model/DeleteNacosServiceResult.h | 59 + .../mse/model/DeleteServiceSourceRequest.h | 48 + .../mse/model/DeleteServiceSourceResult.h | 57 + .../mse/model/DeleteZnodeRequest.h | 51 + .../mse/model/DeleteZnodeResult.h | 66 + .../mse/model/ExportNacosConfigRequest.h | 60 + .../mse/model/ExportNacosConfigResult.h | 67 + .../mse/model/GetBlackWhiteListRequest.h | 51 + .../mse/model/GetBlackWhiteListResult.h | 73 + .../mse/model/GetEngineNamepaceRequest.h | 51 + .../mse/model/GetEngineNamepaceResult.h | 69 + .../mse/model/GetGatewayDomainDetailRequest.h | 48 + .../mse/model/GetGatewayDomainDetailResult.h | 80 + .../mse/model/GetGatewayOptionRequest.h | 48 + .../mse/model/GetGatewayOptionResult.h | 75 + .../mse/model/GetGatewayRequest.h | 45 + .../alibabacloud/mse/model/GetGatewayResult.h | 92 + .../model/GetGatewayServiceDetailRequest.h | 48 + .../mse/model/GetGatewayServiceDetailResult.h | 135 + ...etGovernanceKubernetesClusterListRequest.h | 54 + ...GetGovernanceKubernetesClusterListResult.h | 75 + .../GetGovernanceKubernetesClusterRequest.h | 48 + .../GetGovernanceKubernetesClusterResult.h | 75 + .../alibabacloud/mse/model/GetImageRequest.h | 45 + .../alibabacloud/mse/model/GetImageResult.h | 66 + .../mse/model/GetImportFileUrlRequest.h | 51 + .../mse/model/GetImportFileUrlResult.h | 67 + .../mse/model/GetKubernetesSourceRequest.h | 45 + .../mse/model/GetKubernetesSourceResult.h | 64 + .../mse/model/GetMseFeatureSwitchRequest.h | 42 + .../mse/model/GetMseFeatureSwitchResult.h | 57 + .../mse/model/GetMseSourceRequest.h | 45 + .../mse/model/GetMseSourceResult.h | 67 + .../mse/model/GetNacosConfigRequest.h | 57 + .../mse/model/GetNacosConfigResult.h | 70 + .../mse/model/GetNacosHistoryConfigRequest.h | 57 + .../mse/model/GetNacosHistoryConfigResult.h | 67 + .../mse/model/GetOverviewRequest.h | 48 + .../mse/model/GetOverviewResult.h | 59 + .../mse/model/ImportNacosConfigRequest.h | 54 + .../mse/model/ImportNacosConfigResult.h | 80 + .../mse/model/ImportServicesRequest.h | 63 + .../mse/model/ImportServicesResult.h | 59 + .../mse/model/ListAlarmContactGroupsRequest.h | 51 + .../mse/model/ListAlarmContactGroupsResult.h | 70 + .../mse/model/ListAlarmHistoriesRequest.h | 63 + .../mse/model/ListAlarmHistoriesResult.h | 74 + .../mse/model/ListAlarmItemsRequest.h | 45 + .../mse/model/ListAlarmItemsResult.h | 71 + .../mse/model/ListAlarmRulesRequest.h | 54 + .../mse/model/ListAlarmRulesResult.h | 73 + .../mse/model/ListAnsInstancesRequest.h | 69 + .../mse/model/ListAnsInstancesResult.h | 88 + .../mse/model/ListAnsServiceClustersRequest.h | 69 + .../mse/model/ListAnsServiceClustersResult.h | 77 + .../mse/model/ListAnsServicesRequest.h | 69 + .../mse/model/ListAnsServicesResult.h | 73 + .../model/ListClusterConnectionTypesRequest.h | 42 + .../model/ListClusterConnectionTypesResult.h | 68 + .../mse/model/ListClusterTypesRequest.h | 45 + .../mse/model/ListClusterTypesResult.h | 68 + .../mse/model/ListClusterVersionsRequest.h | 45 + .../mse/model/ListClusterVersionsResult.h | 69 + .../mse/model/ListClustersRequest.h | 57 + .../mse/model/ListClustersResult.h | 85 + .../mse/model/ListEngineNamespacesRequest.h | 54 + .../mse/model/ListEngineNamespacesResult.h | 75 + .../mse/model/ListEurekaInstancesRequest.h | 57 + .../mse/model/ListEurekaInstancesResult.h | 82 + .../mse/model/ListEurekaServicesRequest.h | 57 + .../mse/model/ListEurekaServicesResult.h | 71 + .../mse/model/ListGatewayDomainRequest.h | 45 + .../mse/model/ListGatewayDomainResult.h | 71 + .../mse/model/ListGatewayRequest.h | 64 + .../mse/model/ListGatewayResult.h | 117 + .../mse/model/ListGatewayServiceRequest.h | 64 + .../mse/model/ListGatewayServiceResult.h | 89 + .../mse/model/ListGatewaySlbRequest.h | 45 + .../mse/model/ListGatewaySlbResult.h | 72 + .../mse/model/ListListenersByConfigRequest.h | 57 + .../mse/model/ListListenersByConfigResult.h | 70 + .../mse/model/ListListenersByIpRequest.h | 54 + .../mse/model/ListListenersByIpResult.h | 71 + .../mse/model/ListNacosConfigsRequest.h | 72 + .../mse/model/ListNacosConfigsResult.h | 74 + .../model/ListNacosHistoryConfigsRequest.h | 66 + .../mse/model/ListNacosHistoryConfigsResult.h | 74 + .../mse/model/ListSSLCertRequest.h | 45 + .../mse/model/ListSSLCertResult.h | 72 + .../mse/model/ListServiceSourceRequest.h | 45 + .../mse/model/ListServiceSourceResult.h | 72 + .../mse/model/ListZnodeChildrenRequest.h | 48 + .../mse/model/ListZnodeChildrenResult.h | 64 + ...ModifyGovernanceKubernetesClusterRequest.h | 51 + .../ModifyGovernanceKubernetesClusterResult.h | 59 + .../mse/model/PullServicesRequest.h | 51 + .../mse/model/PullServicesResult.h | 73 + .../mse/model/QueryBusinessLocationsRequest.h | 42 + .../mse/model/QueryBusinessLocationsResult.h | 73 + .../mse/model/QueryClusterDetailRequest.h | 51 + .../mse/model/QueryClusterDetailResult.h | 105 + .../QueryClusterDiskSpecificationRequest.h | 45 + .../QueryClusterDiskSpecificationResult.h | 69 + .../model/QueryClusterSpecificationRequest.h | 42 + .../model/QueryClusterSpecificationResult.h | 71 + .../mse/model/QueryConfigRequest.h | 54 + .../mse/model/QueryConfigResult.h | 84 + .../mse/model/QueryGatewayRegionRequest.h | 42 + .../mse/model/QueryGatewayRegionResult.h | 59 + .../mse/model/QueryGatewayTypeRequest.h | 42 + .../mse/model/QueryGatewayTypeResult.h | 59 + .../QueryGovernanceKubernetesClusterRequest.h | 54 + .../QueryGovernanceKubernetesClusterResult.h | 75 + .../mse/model/QueryMonitorRequest.h | 63 + .../mse/model/QueryMonitorResult.h | 57 + .../mse/model/QuerySlbSpecRequest.h | 42 + .../mse/model/QuerySlbSpecResult.h | 68 + .../mse/model/QueryZnodeDetailRequest.h | 51 + .../mse/model/QueryZnodeDetailResult.h | 64 + .../mse/model/RestartClusterRequest.h | 54 + .../mse/model/RestartClusterResult.h | 55 + .../mse/model/RetryClusterRequest.h | 51 + .../mse/model/RetryClusterResult.h | 55 + .../mse/model/ScalingClusterRequest.h | 60 + .../mse/model/ScalingClusterResult.h | 55 + .../mse/model/SelectGatewaySlbRequest.h | 51 + .../mse/model/SelectGatewaySlbResult.h | 64 + .../alibabacloud/mse/model/UpdateAclRequest.h | 51 + .../alibabacloud/mse/model/UpdateAclResult.h | 55 + .../mse/model/UpdateBlackWhiteListRequest.h | 60 + .../mse/model/UpdateBlackWhiteListResult.h | 59 + .../mse/model/UpdateClusterRequest.h | 54 + .../mse/model/UpdateClusterResult.h | 55 + .../mse/model/UpdateConfigRequest.h | 99 + .../mse/model/UpdateConfigResult.h | 57 + .../mse/model/UpdateEngineNamespaceRequest.h | 60 + .../mse/model/UpdateEngineNamespaceResult.h | 66 + .../mse/model/UpdateGatewayDomainRequest.h | 57 + .../mse/model/UpdateGatewayDomainResult.h | 59 + .../mse/model/UpdateGatewayNameRequest.h | 48 + .../mse/model/UpdateGatewayNameResult.h | 59 + .../mse/model/UpdateGatewayOptionRequest.h | 64 + .../mse/model/UpdateGatewayOptionResult.h | 75 + .../UpdateGatewayRouteHTTPRewriteRequest.h | 54 + .../UpdateGatewayRouteHTTPRewriteResult.h | 59 + .../UpdateGatewayServiceVersionRequest.h | 51 + .../model/UpdateGatewayServiceVersionResult.h | 59 + .../mse/model/UpdateImageRequest.h | 48 + .../mse/model/UpdateImageResult.h | 55 + .../mse/model/UpdateNacosClusterRequest.h | 66 + .../mse/model/UpdateNacosClusterResult.h | 59 + .../mse/model/UpdateNacosConfigRequest.h | 78 + .../mse/model/UpdateNacosConfigResult.h | 57 + .../mse/model/UpdateNacosInstanceRequest.h | 75 + .../mse/model/UpdateNacosInstanceResult.h | 59 + .../mse/model/UpdateNacosServiceRequest.h | 60 + .../mse/model/UpdateNacosServiceResult.h | 59 + .../mse/model/UpdateSSLCertRequest.h | 51 + .../mse/model/UpdateSSLCertResult.h | 59 + .../mse/model/UpdateZnodeRequest.h | 54 + .../mse/model/UpdateZnodeResult.h | 55 + .../mse/model/UpgradeClusterRequest.h | 51 + .../mse/model/UpgradeClusterResult.h | 57 + mse/src/MseClient.cc | 4013 +++++++++++++++++ mse/src/model/AddAuthResourceRequest.cc | 72 + mse/src/model/AddAuthResourceResult.cc | 79 + mse/src/model/AddBlackWhiteListRequest.cc | 90 + mse/src/model/AddBlackWhiteListResult.cc | 79 + mse/src/model/AddGatewayDomainRequest.cc | 81 + mse/src/model/AddGatewayDomainResult.cc | 79 + mse/src/model/AddGatewayRequest.cc | 126 + mse/src/model/AddGatewayResult.cc | 80 + .../model/AddGatewayServiceVersionRequest.cc | 63 + .../model/AddGatewayServiceVersionResult.cc | 79 + mse/src/model/AddGatewaySlbRequest.cc | 63 + mse/src/model/AddGatewaySlbResult.cc | 79 + mse/src/model/AddMockRuleRequest.cc | 135 + mse/src/model/AddMockRuleResult.cc | 106 + mse/src/model/AddSSLCertRequest.cc | 63 + mse/src/model/AddSSLCertResult.cc | 79 + mse/src/model/AddServiceSourceRequest.cc | 81 + mse/src/model/AddServiceSourceResult.cc | 79 + mse/src/model/CloneNacosConfigRequest.cc | 81 + mse/src/model/CloneNacosConfigResult.cc | 116 + mse/src/model/CreateAlarmRuleRequest.cc | 126 + mse/src/model/CreateAlarmRuleResult.cc | 65 + mse/src/model/CreateApplicationRequest.cc | 81 + mse/src/model/CreateApplicationResult.cc | 100 + mse/src/model/CreateClusterRequest.cc | 180 + mse/src/model/CreateClusterResult.cc | 79 + mse/src/model/CreateEngineNamespaceRequest.cc | 81 + mse/src/model/CreateEngineNamespaceResult.cc | 92 + mse/src/model/CreateNacosConfigRequest.cc | 126 + mse/src/model/CreateNacosConfigResult.cc | 79 + mse/src/model/CreateNacosInstanceRequest.cc | 135 + mse/src/model/CreateNacosInstanceResult.cc | 79 + mse/src/model/CreateNacosServiceRequest.cc | 99 + mse/src/model/CreateNacosServiceResult.cc | 79 + mse/src/model/CreateZnodeRequest.cc | 63 + mse/src/model/CreateZnodeResult.cc | 86 + mse/src/model/DeleteAlarmRuleRequest.cc | 54 + mse/src/model/DeleteAlarmRuleResult.cc | 72 + mse/src/model/DeleteAuthResourceRequest.cc | 54 + mse/src/model/DeleteAuthResourceResult.cc | 98 + mse/src/model/DeleteClusterRequest.cc | 54 + mse/src/model/DeleteClusterResult.cc | 72 + mse/src/model/DeleteEngineNamespaceRequest.cc | 63 + mse/src/model/DeleteEngineNamespaceResult.cc | 72 + mse/src/model/DeleteGatewayDomainRequest.cc | 54 + mse/src/model/DeleteGatewayDomainResult.cc | 96 + mse/src/model/DeleteGatewayRequest.cc | 54 + mse/src/model/DeleteGatewayResult.cc | 104 + .../DeleteGatewayServiceVersionRequest.cc | 63 + .../DeleteGatewayServiceVersionResult.cc | 79 + mse/src/model/DeleteGatewaySlbRequest.cc | 63 + mse/src/model/DeleteGatewaySlbResult.cc | 79 + mse/src/model/DeleteNacosConfigRequest.cc | 81 + mse/src/model/DeleteNacosConfigResult.cc | 79 + mse/src/model/DeleteNacosConfigsRequest.cc | 63 + mse/src/model/DeleteNacosConfigsResult.cc | 79 + mse/src/model/DeleteNacosServiceRequest.cc | 72 + mse/src/model/DeleteNacosServiceResult.cc | 79 + mse/src/model/DeleteServiceSourceRequest.cc | 54 + mse/src/model/DeleteServiceSourceResult.cc | 72 + mse/src/model/DeleteZnodeRequest.cc | 63 + mse/src/model/DeleteZnodeResult.cc | 86 + mse/src/model/ExportNacosConfigRequest.cc | 90 + mse/src/model/ExportNacosConfigResult.cc | 94 + mse/src/model/GetBlackWhiteListRequest.cc | 63 + mse/src/model/GetBlackWhiteListResult.cc | 100 + mse/src/model/GetEngineNamepaceRequest.cc | 63 + mse/src/model/GetEngineNamepaceResult.cc | 114 + .../model/GetGatewayDomainDetailRequest.cc | 54 + mse/src/model/GetGatewayDomainDetailResult.cc | 114 + mse/src/model/GetGatewayOptionRequest.cc | 54 + mse/src/model/GetGatewayOptionResult.cc | 90 + mse/src/model/GetGatewayRequest.cc | 45 + mse/src/model/GetGatewayResult.cc | 124 + .../model/GetGatewayServiceDetailRequest.cc | 54 + .../model/GetGatewayServiceDetailResult.cc | 176 + ...tGovernanceKubernetesClusterListRequest.cc | 72 + ...etGovernanceKubernetesClusterListResult.cc | 102 + .../GetGovernanceKubernetesClusterRequest.cc | 54 + .../GetGovernanceKubernetesClusterResult.cc | 102 + mse/src/model/GetImageRequest.cc | 45 + mse/src/model/GetImageResult.cc | 86 + mse/src/model/GetImportFileUrlRequest.cc | 63 + mse/src/model/GetImportFileUrlResult.cc | 94 + mse/src/model/GetKubernetesSourceRequest.cc | 45 + mse/src/model/GetKubernetesSourceResult.cc | 87 + mse/src/model/GetMseFeatureSwitchRequest.cc | 36 + mse/src/model/GetMseFeatureSwitchResult.cc | 72 + mse/src/model/GetMseSourceRequest.cc | 45 + mse/src/model/GetMseSourceResult.cc | 93 + mse/src/model/GetNacosConfigRequest.cc | 81 + mse/src/model/GetNacosConfigResult.cc | 91 + mse/src/model/GetNacosHistoryConfigRequest.cc | 81 + mse/src/model/GetNacosHistoryConfigResult.cc | 85 + mse/src/model/GetOverviewRequest.cc | 54 + mse/src/model/GetOverviewResult.cc | 79 + mse/src/model/ImportNacosConfigRequest.cc | 72 + mse/src/model/ImportNacosConfigResult.cc | 116 + mse/src/model/ImportServicesRequest.cc | 81 + mse/src/model/ImportServicesResult.cc | 79 + .../model/ListAlarmContactGroupsRequest.cc | 63 + mse/src/model/ListAlarmContactGroupsResult.cc | 108 + mse/src/model/ListAlarmHistoriesRequest.cc | 99 + mse/src/model/ListAlarmHistoriesResult.cc | 116 + mse/src/model/ListAlarmItemsRequest.cc | 45 + mse/src/model/ListAlarmItemsResult.cc | 110 + mse/src/model/ListAlarmRulesRequest.cc | 72 + mse/src/model/ListAlarmRulesResult.cc | 114 + mse/src/model/ListAnsInstancesRequest.cc | 117 + mse/src/model/ListAnsInstancesResult.cc | 144 + .../model/ListAnsServiceClustersRequest.cc | 117 + mse/src/model/ListAnsServiceClustersResult.cc | 103 + mse/src/model/ListAnsServicesRequest.cc | 117 + mse/src/model/ListAnsServicesResult.cc | 114 + .../ListClusterConnectionTypesRequest.cc | 36 + .../model/ListClusterConnectionTypesResult.cc | 101 + mse/src/model/ListClusterTypesRequest.cc | 45 + mse/src/model/ListClusterTypesResult.cc | 101 + mse/src/model/ListClusterVersionsRequest.cc | 45 + mse/src/model/ListClusterVersionsResult.cc | 103 + mse/src/model/ListClustersRequest.cc | 81 + mse/src/model/ListClustersResult.cc | 138 + mse/src/model/ListEngineNamespacesRequest.cc | 72 + mse/src/model/ListEngineNamespacesResult.cc | 118 + mse/src/model/ListEurekaInstancesRequest.cc | 81 + mse/src/model/ListEurekaInstancesResult.cc | 132 + mse/src/model/ListEurekaServicesRequest.cc | 81 + mse/src/model/ListEurekaServicesResult.cc | 111 + mse/src/model/ListGatewayDomainRequest.cc | 45 + mse/src/model/ListGatewayDomainResult.cc | 101 + mse/src/model/ListGatewayRequest.cc | 85 + mse/src/model/ListGatewayResult.cc | 182 + mse/src/model/ListGatewayServiceRequest.cc | 85 + mse/src/model/ListGatewayServiceResult.cc | 129 + mse/src/model/ListGatewaySlbRequest.cc | 45 + mse/src/model/ListGatewaySlbResult.cc | 103 + mse/src/model/ListListenersByConfigRequest.cc | 81 + mse/src/model/ListListenersByConfigResult.cc | 108 + mse/src/model/ListListenersByIpRequest.cc | 72 + mse/src/model/ListListenersByIpResult.cc | 110 + mse/src/model/ListNacosConfigsRequest.cc | 126 + mse/src/model/ListNacosConfigsResult.cc | 119 + .../model/ListNacosHistoryConfigsRequest.cc | 108 + .../model/ListNacosHistoryConfigsResult.cc | 116 + mse/src/model/ListSSLCertRequest.cc | 45 + mse/src/model/ListSSLCertResult.cc | 103 + mse/src/model/ListServiceSourceRequest.cc | 45 + mse/src/model/ListServiceSourceResult.cc | 103 + mse/src/model/ListZnodeChildrenRequest.cc | 54 + mse/src/model/ListZnodeChildrenResult.cc | 84 + ...odifyGovernanceKubernetesClusterRequest.cc | 63 + ...ModifyGovernanceKubernetesClusterResult.cc | 79 + mse/src/model/PullServicesRequest.cc | 63 + mse/src/model/PullServicesResult.cc | 103 + .../model/QueryBusinessLocationsRequest.cc | 36 + mse/src/model/QueryBusinessLocationsResult.cc | 102 + mse/src/model/QueryClusterDetailRequest.cc | 63 + mse/src/model/QueryClusterDetailResult.cc | 159 + .../QueryClusterDiskSpecificationRequest.cc | 45 + .../QueryClusterDiskSpecificationResult.cc | 98 + .../model/QueryClusterSpecificationRequest.cc | 36 + .../model/QueryClusterSpecificationResult.cc | 104 + mse/src/model/QueryConfigRequest.cc | 72 + mse/src/model/QueryConfigResult.cc | 122 + mse/src/model/QueryGatewayRegionRequest.cc | 36 + mse/src/model/QueryGatewayRegionResult.cc | 80 + mse/src/model/QueryGatewayTypeRequest.cc | 36 + mse/src/model/QueryGatewayTypeResult.cc | 80 + ...QueryGovernanceKubernetesClusterRequest.cc | 72 + .../QueryGovernanceKubernetesClusterResult.cc | 102 + mse/src/model/QueryMonitorRequest.cc | 99 + mse/src/model/QueryMonitorResult.cc | 72 + mse/src/model/QuerySlbSpecRequest.cc | 36 + mse/src/model/QuerySlbSpecResult.cc | 95 + mse/src/model/QueryZnodeDetailRequest.cc | 63 + mse/src/model/QueryZnodeDetailResult.cc | 79 + mse/src/model/RestartClusterRequest.cc | 72 + mse/src/model/RestartClusterResult.cc | 65 + mse/src/model/RetryClusterRequest.cc | 63 + mse/src/model/RetryClusterResult.cc | 65 + mse/src/model/ScalingClusterRequest.cc | 90 + mse/src/model/ScalingClusterResult.cc | 65 + mse/src/model/SelectGatewaySlbRequest.cc | 63 + mse/src/model/SelectGatewaySlbResult.cc | 87 + mse/src/model/UpdateAclRequest.cc | 63 + mse/src/model/UpdateAclResult.cc | 65 + mse/src/model/UpdateBlackWhiteListRequest.cc | 90 + mse/src/model/UpdateBlackWhiteListResult.cc | 79 + mse/src/model/UpdateClusterRequest.cc | 72 + mse/src/model/UpdateClusterResult.cc | 65 + mse/src/model/UpdateConfigRequest.cc | 207 + mse/src/model/UpdateConfigResult.cc | 72 + mse/src/model/UpdateEngineNamespaceRequest.cc | 90 + mse/src/model/UpdateEngineNamespaceResult.cc | 83 + mse/src/model/UpdateGatewayDomainRequest.cc | 81 + mse/src/model/UpdateGatewayDomainResult.cc | 79 + mse/src/model/UpdateGatewayNameRequest.cc | 54 + mse/src/model/UpdateGatewayNameResult.cc | 79 + mse/src/model/UpdateGatewayOptionRequest.cc | 67 + mse/src/model/UpdateGatewayOptionResult.cc | 90 + .../UpdateGatewayRouteHTTPRewriteRequest.cc | 72 + .../UpdateGatewayRouteHTTPRewriteResult.cc | 79 + .../UpdateGatewayServiceVersionRequest.cc | 63 + .../UpdateGatewayServiceVersionResult.cc | 79 + mse/src/model/UpdateImageRequest.cc | 54 + mse/src/model/UpdateImageResult.cc | 65 + mse/src/model/UpdateNacosClusterRequest.cc | 108 + mse/src/model/UpdateNacosClusterResult.cc | 79 + mse/src/model/UpdateNacosConfigRequest.cc | 144 + mse/src/model/UpdateNacosConfigResult.cc | 72 + mse/src/model/UpdateNacosInstanceRequest.cc | 135 + mse/src/model/UpdateNacosInstanceResult.cc | 79 + mse/src/model/UpdateNacosServiceRequest.cc | 90 + mse/src/model/UpdateNacosServiceResult.cc | 79 + mse/src/model/UpdateSSLCertRequest.cc | 63 + mse/src/model/UpdateSSLCertResult.cc | 79 + mse/src/model/UpdateZnodeRequest.cc | 72 + mse/src/model/UpdateZnodeResult.cc | 65 + mse/src/model/UpgradeClusterRequest.cc | 63 + mse/src/model/UpgradeClusterResult.cc | 72 + 446 files changed, 37391 insertions(+), 1 deletion(-) create mode 100644 mse/CMakeLists.txt create mode 100644 mse/include/alibabacloud/mse/MseClient.h create mode 100644 mse/include/alibabacloud/mse/MseExport.h create mode 100644 mse/include/alibabacloud/mse/model/AddAuthResourceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/AddAuthResourceResult.h create mode 100644 mse/include/alibabacloud/mse/model/AddBlackWhiteListRequest.h create mode 100644 mse/include/alibabacloud/mse/model/AddBlackWhiteListResult.h create mode 100644 mse/include/alibabacloud/mse/model/AddGatewayDomainRequest.h create mode 100644 mse/include/alibabacloud/mse/model/AddGatewayDomainResult.h create mode 100644 mse/include/alibabacloud/mse/model/AddGatewayRequest.h create mode 100644 mse/include/alibabacloud/mse/model/AddGatewayResult.h create mode 100644 mse/include/alibabacloud/mse/model/AddGatewayServiceVersionRequest.h create mode 100644 mse/include/alibabacloud/mse/model/AddGatewayServiceVersionResult.h create mode 100644 mse/include/alibabacloud/mse/model/AddGatewaySlbRequest.h create mode 100644 mse/include/alibabacloud/mse/model/AddGatewaySlbResult.h create mode 100644 mse/include/alibabacloud/mse/model/AddMockRuleRequest.h create mode 100644 mse/include/alibabacloud/mse/model/AddMockRuleResult.h create mode 100644 mse/include/alibabacloud/mse/model/AddSSLCertRequest.h create mode 100644 mse/include/alibabacloud/mse/model/AddSSLCertResult.h create mode 100644 mse/include/alibabacloud/mse/model/AddServiceSourceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/AddServiceSourceResult.h create mode 100644 mse/include/alibabacloud/mse/model/CloneNacosConfigRequest.h create mode 100644 mse/include/alibabacloud/mse/model/CloneNacosConfigResult.h create mode 100644 mse/include/alibabacloud/mse/model/CreateAlarmRuleRequest.h create mode 100644 mse/include/alibabacloud/mse/model/CreateAlarmRuleResult.h create mode 100644 mse/include/alibabacloud/mse/model/CreateApplicationRequest.h create mode 100644 mse/include/alibabacloud/mse/model/CreateApplicationResult.h create mode 100644 mse/include/alibabacloud/mse/model/CreateClusterRequest.h create mode 100644 mse/include/alibabacloud/mse/model/CreateClusterResult.h create mode 100644 mse/include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/CreateEngineNamespaceResult.h create mode 100644 mse/include/alibabacloud/mse/model/CreateNacosConfigRequest.h create mode 100644 mse/include/alibabacloud/mse/model/CreateNacosConfigResult.h create mode 100644 mse/include/alibabacloud/mse/model/CreateNacosInstanceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/CreateNacosInstanceResult.h create mode 100644 mse/include/alibabacloud/mse/model/CreateNacosServiceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/CreateNacosServiceResult.h create mode 100644 mse/include/alibabacloud/mse/model/CreateZnodeRequest.h create mode 100644 mse/include/alibabacloud/mse/model/CreateZnodeResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteAlarmRuleRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteAlarmRuleResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteAuthResourceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteAuthResourceResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteClusterRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteClusterResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteEngineNamespaceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteEngineNamespaceResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewayDomainRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewayDomainResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewayRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewayResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewayServiceVersionRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewayServiceVersionResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewaySlbRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteGatewaySlbResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteNacosConfigRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteNacosConfigResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteNacosConfigsRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteNacosConfigsResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteNacosServiceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteNacosServiceResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteServiceSourceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteServiceSourceResult.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteZnodeRequest.h create mode 100644 mse/include/alibabacloud/mse/model/DeleteZnodeResult.h create mode 100644 mse/include/alibabacloud/mse/model/ExportNacosConfigRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ExportNacosConfigResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetBlackWhiteListRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetBlackWhiteListResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetEngineNamepaceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetEngineNamepaceResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetGatewayDomainDetailRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetGatewayDomainDetailResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetGatewayOptionRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetGatewayOptionResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetGatewayRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetGatewayResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetGatewayServiceDetailRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetGatewayServiceDetailResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterListRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterListResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetImageRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetImageResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetImportFileUrlRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetImportFileUrlResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetKubernetesSourceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetKubernetesSourceResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetMseFeatureSwitchRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetMseFeatureSwitchResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetMseSourceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetMseSourceResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetNacosConfigRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetNacosConfigResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetNacosHistoryConfigRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetNacosHistoryConfigResult.h create mode 100644 mse/include/alibabacloud/mse/model/GetOverviewRequest.h create mode 100644 mse/include/alibabacloud/mse/model/GetOverviewResult.h create mode 100644 mse/include/alibabacloud/mse/model/ImportNacosConfigRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ImportNacosConfigResult.h create mode 100644 mse/include/alibabacloud/mse/model/ImportServicesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ImportServicesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListAlarmContactGroupsRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListAlarmContactGroupsResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListAlarmHistoriesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListAlarmHistoriesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListAlarmItemsRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListAlarmItemsResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListAlarmRulesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListAlarmRulesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListAnsInstancesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListAnsInstancesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListAnsServiceClustersRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListAnsServiceClustersResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListAnsServicesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListAnsServicesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListClusterConnectionTypesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListClusterConnectionTypesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListClusterTypesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListClusterTypesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListClusterVersionsRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListClusterVersionsResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListClustersRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListClustersResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListEngineNamespacesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListEngineNamespacesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListEurekaInstancesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListEurekaInstancesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListEurekaServicesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListEurekaServicesResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewayDomainRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewayDomainResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewayRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewayResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewayServiceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewayServiceResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewaySlbRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListGatewaySlbResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListListenersByConfigRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListListenersByConfigResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListListenersByIpRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListListenersByIpResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListNacosConfigsRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListNacosConfigsResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListNacosHistoryConfigsRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListNacosHistoryConfigsResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListSSLCertRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListSSLCertResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListServiceSourceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListServiceSourceResult.h create mode 100644 mse/include/alibabacloud/mse/model/ListZnodeChildrenRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ListZnodeChildrenResult.h create mode 100644 mse/include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterResult.h create mode 100644 mse/include/alibabacloud/mse/model/PullServicesRequest.h create mode 100644 mse/include/alibabacloud/mse/model/PullServicesResult.h create mode 100644 mse/include/alibabacloud/mse/model/QueryBusinessLocationsRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QueryBusinessLocationsResult.h create mode 100644 mse/include/alibabacloud/mse/model/QueryClusterDetailRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QueryClusterDetailResult.h create mode 100644 mse/include/alibabacloud/mse/model/QueryClusterDiskSpecificationRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QueryClusterDiskSpecificationResult.h create mode 100644 mse/include/alibabacloud/mse/model/QueryClusterSpecificationRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QueryClusterSpecificationResult.h create mode 100644 mse/include/alibabacloud/mse/model/QueryConfigRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QueryConfigResult.h create mode 100644 mse/include/alibabacloud/mse/model/QueryGatewayRegionRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QueryGatewayRegionResult.h create mode 100644 mse/include/alibabacloud/mse/model/QueryGatewayTypeRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QueryGatewayTypeResult.h create mode 100644 mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterResult.h create mode 100644 mse/include/alibabacloud/mse/model/QueryMonitorRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QueryMonitorResult.h create mode 100644 mse/include/alibabacloud/mse/model/QuerySlbSpecRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QuerySlbSpecResult.h create mode 100644 mse/include/alibabacloud/mse/model/QueryZnodeDetailRequest.h create mode 100644 mse/include/alibabacloud/mse/model/QueryZnodeDetailResult.h create mode 100644 mse/include/alibabacloud/mse/model/RestartClusterRequest.h create mode 100644 mse/include/alibabacloud/mse/model/RestartClusterResult.h create mode 100644 mse/include/alibabacloud/mse/model/RetryClusterRequest.h create mode 100644 mse/include/alibabacloud/mse/model/RetryClusterResult.h create mode 100644 mse/include/alibabacloud/mse/model/ScalingClusterRequest.h create mode 100644 mse/include/alibabacloud/mse/model/ScalingClusterResult.h create mode 100644 mse/include/alibabacloud/mse/model/SelectGatewaySlbRequest.h create mode 100644 mse/include/alibabacloud/mse/model/SelectGatewaySlbResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateAclRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateAclResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateBlackWhiteListRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateBlackWhiteListResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateClusterRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateClusterResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateConfigRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateConfigResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateEngineNamespaceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateEngineNamespaceResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayDomainRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayDomainResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayNameRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayNameResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayOptionRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayOptionResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayRouteHTTPRewriteRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayRouteHTTPRewriteResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayServiceVersionRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateGatewayServiceVersionResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateImageRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateImageResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateNacosClusterRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateNacosClusterResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateNacosConfigRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateNacosConfigResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateNacosInstanceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateNacosInstanceResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateNacosServiceRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateNacosServiceResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateSSLCertRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateSSLCertResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateZnodeRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpdateZnodeResult.h create mode 100644 mse/include/alibabacloud/mse/model/UpgradeClusterRequest.h create mode 100644 mse/include/alibabacloud/mse/model/UpgradeClusterResult.h create mode 100644 mse/src/MseClient.cc create mode 100644 mse/src/model/AddAuthResourceRequest.cc create mode 100644 mse/src/model/AddAuthResourceResult.cc create mode 100644 mse/src/model/AddBlackWhiteListRequest.cc create mode 100644 mse/src/model/AddBlackWhiteListResult.cc create mode 100644 mse/src/model/AddGatewayDomainRequest.cc create mode 100644 mse/src/model/AddGatewayDomainResult.cc create mode 100644 mse/src/model/AddGatewayRequest.cc create mode 100644 mse/src/model/AddGatewayResult.cc create mode 100644 mse/src/model/AddGatewayServiceVersionRequest.cc create mode 100644 mse/src/model/AddGatewayServiceVersionResult.cc create mode 100644 mse/src/model/AddGatewaySlbRequest.cc create mode 100644 mse/src/model/AddGatewaySlbResult.cc create mode 100644 mse/src/model/AddMockRuleRequest.cc create mode 100644 mse/src/model/AddMockRuleResult.cc create mode 100644 mse/src/model/AddSSLCertRequest.cc create mode 100644 mse/src/model/AddSSLCertResult.cc create mode 100644 mse/src/model/AddServiceSourceRequest.cc create mode 100644 mse/src/model/AddServiceSourceResult.cc create mode 100644 mse/src/model/CloneNacosConfigRequest.cc create mode 100644 mse/src/model/CloneNacosConfigResult.cc create mode 100644 mse/src/model/CreateAlarmRuleRequest.cc create mode 100644 mse/src/model/CreateAlarmRuleResult.cc create mode 100644 mse/src/model/CreateApplicationRequest.cc create mode 100644 mse/src/model/CreateApplicationResult.cc create mode 100644 mse/src/model/CreateClusterRequest.cc create mode 100644 mse/src/model/CreateClusterResult.cc create mode 100644 mse/src/model/CreateEngineNamespaceRequest.cc create mode 100644 mse/src/model/CreateEngineNamespaceResult.cc create mode 100644 mse/src/model/CreateNacosConfigRequest.cc create mode 100644 mse/src/model/CreateNacosConfigResult.cc create mode 100644 mse/src/model/CreateNacosInstanceRequest.cc create mode 100644 mse/src/model/CreateNacosInstanceResult.cc create mode 100644 mse/src/model/CreateNacosServiceRequest.cc create mode 100644 mse/src/model/CreateNacosServiceResult.cc create mode 100644 mse/src/model/CreateZnodeRequest.cc create mode 100644 mse/src/model/CreateZnodeResult.cc create mode 100644 mse/src/model/DeleteAlarmRuleRequest.cc create mode 100644 mse/src/model/DeleteAlarmRuleResult.cc create mode 100644 mse/src/model/DeleteAuthResourceRequest.cc create mode 100644 mse/src/model/DeleteAuthResourceResult.cc create mode 100644 mse/src/model/DeleteClusterRequest.cc create mode 100644 mse/src/model/DeleteClusterResult.cc create mode 100644 mse/src/model/DeleteEngineNamespaceRequest.cc create mode 100644 mse/src/model/DeleteEngineNamespaceResult.cc create mode 100644 mse/src/model/DeleteGatewayDomainRequest.cc create mode 100644 mse/src/model/DeleteGatewayDomainResult.cc create mode 100644 mse/src/model/DeleteGatewayRequest.cc create mode 100644 mse/src/model/DeleteGatewayResult.cc create mode 100644 mse/src/model/DeleteGatewayServiceVersionRequest.cc create mode 100644 mse/src/model/DeleteGatewayServiceVersionResult.cc create mode 100644 mse/src/model/DeleteGatewaySlbRequest.cc create mode 100644 mse/src/model/DeleteGatewaySlbResult.cc create mode 100644 mse/src/model/DeleteNacosConfigRequest.cc create mode 100644 mse/src/model/DeleteNacosConfigResult.cc create mode 100644 mse/src/model/DeleteNacosConfigsRequest.cc create mode 100644 mse/src/model/DeleteNacosConfigsResult.cc create mode 100644 mse/src/model/DeleteNacosServiceRequest.cc create mode 100644 mse/src/model/DeleteNacosServiceResult.cc create mode 100644 mse/src/model/DeleteServiceSourceRequest.cc create mode 100644 mse/src/model/DeleteServiceSourceResult.cc create mode 100644 mse/src/model/DeleteZnodeRequest.cc create mode 100644 mse/src/model/DeleteZnodeResult.cc create mode 100644 mse/src/model/ExportNacosConfigRequest.cc create mode 100644 mse/src/model/ExportNacosConfigResult.cc create mode 100644 mse/src/model/GetBlackWhiteListRequest.cc create mode 100644 mse/src/model/GetBlackWhiteListResult.cc create mode 100644 mse/src/model/GetEngineNamepaceRequest.cc create mode 100644 mse/src/model/GetEngineNamepaceResult.cc create mode 100644 mse/src/model/GetGatewayDomainDetailRequest.cc create mode 100644 mse/src/model/GetGatewayDomainDetailResult.cc create mode 100644 mse/src/model/GetGatewayOptionRequest.cc create mode 100644 mse/src/model/GetGatewayOptionResult.cc create mode 100644 mse/src/model/GetGatewayRequest.cc create mode 100644 mse/src/model/GetGatewayResult.cc create mode 100644 mse/src/model/GetGatewayServiceDetailRequest.cc create mode 100644 mse/src/model/GetGatewayServiceDetailResult.cc create mode 100644 mse/src/model/GetGovernanceKubernetesClusterListRequest.cc create mode 100644 mse/src/model/GetGovernanceKubernetesClusterListResult.cc create mode 100644 mse/src/model/GetGovernanceKubernetesClusterRequest.cc create mode 100644 mse/src/model/GetGovernanceKubernetesClusterResult.cc create mode 100644 mse/src/model/GetImageRequest.cc create mode 100644 mse/src/model/GetImageResult.cc create mode 100644 mse/src/model/GetImportFileUrlRequest.cc create mode 100644 mse/src/model/GetImportFileUrlResult.cc create mode 100644 mse/src/model/GetKubernetesSourceRequest.cc create mode 100644 mse/src/model/GetKubernetesSourceResult.cc create mode 100644 mse/src/model/GetMseFeatureSwitchRequest.cc create mode 100644 mse/src/model/GetMseFeatureSwitchResult.cc create mode 100644 mse/src/model/GetMseSourceRequest.cc create mode 100644 mse/src/model/GetMseSourceResult.cc create mode 100644 mse/src/model/GetNacosConfigRequest.cc create mode 100644 mse/src/model/GetNacosConfigResult.cc create mode 100644 mse/src/model/GetNacosHistoryConfigRequest.cc create mode 100644 mse/src/model/GetNacosHistoryConfigResult.cc create mode 100644 mse/src/model/GetOverviewRequest.cc create mode 100644 mse/src/model/GetOverviewResult.cc create mode 100644 mse/src/model/ImportNacosConfigRequest.cc create mode 100644 mse/src/model/ImportNacosConfigResult.cc create mode 100644 mse/src/model/ImportServicesRequest.cc create mode 100644 mse/src/model/ImportServicesResult.cc create mode 100644 mse/src/model/ListAlarmContactGroupsRequest.cc create mode 100644 mse/src/model/ListAlarmContactGroupsResult.cc create mode 100644 mse/src/model/ListAlarmHistoriesRequest.cc create mode 100644 mse/src/model/ListAlarmHistoriesResult.cc create mode 100644 mse/src/model/ListAlarmItemsRequest.cc create mode 100644 mse/src/model/ListAlarmItemsResult.cc create mode 100644 mse/src/model/ListAlarmRulesRequest.cc create mode 100644 mse/src/model/ListAlarmRulesResult.cc create mode 100644 mse/src/model/ListAnsInstancesRequest.cc create mode 100644 mse/src/model/ListAnsInstancesResult.cc create mode 100644 mse/src/model/ListAnsServiceClustersRequest.cc create mode 100644 mse/src/model/ListAnsServiceClustersResult.cc create mode 100644 mse/src/model/ListAnsServicesRequest.cc create mode 100644 mse/src/model/ListAnsServicesResult.cc create mode 100644 mse/src/model/ListClusterConnectionTypesRequest.cc create mode 100644 mse/src/model/ListClusterConnectionTypesResult.cc create mode 100644 mse/src/model/ListClusterTypesRequest.cc create mode 100644 mse/src/model/ListClusterTypesResult.cc create mode 100644 mse/src/model/ListClusterVersionsRequest.cc create mode 100644 mse/src/model/ListClusterVersionsResult.cc create mode 100644 mse/src/model/ListClustersRequest.cc create mode 100644 mse/src/model/ListClustersResult.cc create mode 100644 mse/src/model/ListEngineNamespacesRequest.cc create mode 100644 mse/src/model/ListEngineNamespacesResult.cc create mode 100644 mse/src/model/ListEurekaInstancesRequest.cc create mode 100644 mse/src/model/ListEurekaInstancesResult.cc create mode 100644 mse/src/model/ListEurekaServicesRequest.cc create mode 100644 mse/src/model/ListEurekaServicesResult.cc create mode 100644 mse/src/model/ListGatewayDomainRequest.cc create mode 100644 mse/src/model/ListGatewayDomainResult.cc create mode 100644 mse/src/model/ListGatewayRequest.cc create mode 100644 mse/src/model/ListGatewayResult.cc create mode 100644 mse/src/model/ListGatewayServiceRequest.cc create mode 100644 mse/src/model/ListGatewayServiceResult.cc create mode 100644 mse/src/model/ListGatewaySlbRequest.cc create mode 100644 mse/src/model/ListGatewaySlbResult.cc create mode 100644 mse/src/model/ListListenersByConfigRequest.cc create mode 100644 mse/src/model/ListListenersByConfigResult.cc create mode 100644 mse/src/model/ListListenersByIpRequest.cc create mode 100644 mse/src/model/ListListenersByIpResult.cc create mode 100644 mse/src/model/ListNacosConfigsRequest.cc create mode 100644 mse/src/model/ListNacosConfigsResult.cc create mode 100644 mse/src/model/ListNacosHistoryConfigsRequest.cc create mode 100644 mse/src/model/ListNacosHistoryConfigsResult.cc create mode 100644 mse/src/model/ListSSLCertRequest.cc create mode 100644 mse/src/model/ListSSLCertResult.cc create mode 100644 mse/src/model/ListServiceSourceRequest.cc create mode 100644 mse/src/model/ListServiceSourceResult.cc create mode 100644 mse/src/model/ListZnodeChildrenRequest.cc create mode 100644 mse/src/model/ListZnodeChildrenResult.cc create mode 100644 mse/src/model/ModifyGovernanceKubernetesClusterRequest.cc create mode 100644 mse/src/model/ModifyGovernanceKubernetesClusterResult.cc create mode 100644 mse/src/model/PullServicesRequest.cc create mode 100644 mse/src/model/PullServicesResult.cc create mode 100644 mse/src/model/QueryBusinessLocationsRequest.cc create mode 100644 mse/src/model/QueryBusinessLocationsResult.cc create mode 100644 mse/src/model/QueryClusterDetailRequest.cc create mode 100644 mse/src/model/QueryClusterDetailResult.cc create mode 100644 mse/src/model/QueryClusterDiskSpecificationRequest.cc create mode 100644 mse/src/model/QueryClusterDiskSpecificationResult.cc create mode 100644 mse/src/model/QueryClusterSpecificationRequest.cc create mode 100644 mse/src/model/QueryClusterSpecificationResult.cc create mode 100644 mse/src/model/QueryConfigRequest.cc create mode 100644 mse/src/model/QueryConfigResult.cc create mode 100644 mse/src/model/QueryGatewayRegionRequest.cc create mode 100644 mse/src/model/QueryGatewayRegionResult.cc create mode 100644 mse/src/model/QueryGatewayTypeRequest.cc create mode 100644 mse/src/model/QueryGatewayTypeResult.cc create mode 100644 mse/src/model/QueryGovernanceKubernetesClusterRequest.cc create mode 100644 mse/src/model/QueryGovernanceKubernetesClusterResult.cc create mode 100644 mse/src/model/QueryMonitorRequest.cc create mode 100644 mse/src/model/QueryMonitorResult.cc create mode 100644 mse/src/model/QuerySlbSpecRequest.cc create mode 100644 mse/src/model/QuerySlbSpecResult.cc create mode 100644 mse/src/model/QueryZnodeDetailRequest.cc create mode 100644 mse/src/model/QueryZnodeDetailResult.cc create mode 100644 mse/src/model/RestartClusterRequest.cc create mode 100644 mse/src/model/RestartClusterResult.cc create mode 100644 mse/src/model/RetryClusterRequest.cc create mode 100644 mse/src/model/RetryClusterResult.cc create mode 100644 mse/src/model/ScalingClusterRequest.cc create mode 100644 mse/src/model/ScalingClusterResult.cc create mode 100644 mse/src/model/SelectGatewaySlbRequest.cc create mode 100644 mse/src/model/SelectGatewaySlbResult.cc create mode 100644 mse/src/model/UpdateAclRequest.cc create mode 100644 mse/src/model/UpdateAclResult.cc create mode 100644 mse/src/model/UpdateBlackWhiteListRequest.cc create mode 100644 mse/src/model/UpdateBlackWhiteListResult.cc create mode 100644 mse/src/model/UpdateClusterRequest.cc create mode 100644 mse/src/model/UpdateClusterResult.cc create mode 100644 mse/src/model/UpdateConfigRequest.cc create mode 100644 mse/src/model/UpdateConfigResult.cc create mode 100644 mse/src/model/UpdateEngineNamespaceRequest.cc create mode 100644 mse/src/model/UpdateEngineNamespaceResult.cc create mode 100644 mse/src/model/UpdateGatewayDomainRequest.cc create mode 100644 mse/src/model/UpdateGatewayDomainResult.cc create mode 100644 mse/src/model/UpdateGatewayNameRequest.cc create mode 100644 mse/src/model/UpdateGatewayNameResult.cc create mode 100644 mse/src/model/UpdateGatewayOptionRequest.cc create mode 100644 mse/src/model/UpdateGatewayOptionResult.cc create mode 100644 mse/src/model/UpdateGatewayRouteHTTPRewriteRequest.cc create mode 100644 mse/src/model/UpdateGatewayRouteHTTPRewriteResult.cc create mode 100644 mse/src/model/UpdateGatewayServiceVersionRequest.cc create mode 100644 mse/src/model/UpdateGatewayServiceVersionResult.cc create mode 100644 mse/src/model/UpdateImageRequest.cc create mode 100644 mse/src/model/UpdateImageResult.cc create mode 100644 mse/src/model/UpdateNacosClusterRequest.cc create mode 100644 mse/src/model/UpdateNacosClusterResult.cc create mode 100644 mse/src/model/UpdateNacosConfigRequest.cc create mode 100644 mse/src/model/UpdateNacosConfigResult.cc create mode 100644 mse/src/model/UpdateNacosInstanceRequest.cc create mode 100644 mse/src/model/UpdateNacosInstanceResult.cc create mode 100644 mse/src/model/UpdateNacosServiceRequest.cc create mode 100644 mse/src/model/UpdateNacosServiceResult.cc create mode 100644 mse/src/model/UpdateSSLCertRequest.cc create mode 100644 mse/src/model/UpdateSSLCertResult.cc create mode 100644 mse/src/model/UpdateZnodeRequest.cc create mode 100644 mse/src/model/UpdateZnodeResult.cc create mode 100644 mse/src/model/UpgradeClusterRequest.cc create mode 100644 mse/src/model/UpgradeClusterResult.cc diff --git a/CHANGELOG b/CHANGELOG index 1967103e8..52980e99e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2022-01-19 Version: 1.36.1031 +- ReportOneAgentInfo. + + 2022-01-18 Version: 1.36.1030 - Upgrade SDK. diff --git a/VERSION b/VERSION index ff8984ee4..44d2b795b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1030 \ No newline at end of file +1.36.1031 \ No newline at end of file diff --git a/mse/CMakeLists.txt b/mse/CMakeLists.txt new file mode 100644 index 000000000..992393720 --- /dev/null +++ b/mse/CMakeLists.txt @@ -0,0 +1,522 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(mse_public_header + include/alibabacloud/mse/MseClient.h + include/alibabacloud/mse/MseExport.h ) + +set(mse_public_header_model + 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/AddGatewayDomainRequest.h + include/alibabacloud/mse/model/AddGatewayDomainResult.h + include/alibabacloud/mse/model/AddGatewayServiceVersionRequest.h + include/alibabacloud/mse/model/AddGatewayServiceVersionResult.h + include/alibabacloud/mse/model/AddGatewaySlbRequest.h + include/alibabacloud/mse/model/AddGatewaySlbResult.h + include/alibabacloud/mse/model/AddMockRuleRequest.h + include/alibabacloud/mse/model/AddMockRuleResult.h + include/alibabacloud/mse/model/AddSSLCertRequest.h + include/alibabacloud/mse/model/AddSSLCertResult.h + include/alibabacloud/mse/model/AddServiceSourceRequest.h + include/alibabacloud/mse/model/AddServiceSourceResult.h + include/alibabacloud/mse/model/CloneNacosConfigRequest.h + include/alibabacloud/mse/model/CloneNacosConfigResult.h + include/alibabacloud/mse/model/CreateAlarmRuleRequest.h + include/alibabacloud/mse/model/CreateAlarmRuleResult.h + include/alibabacloud/mse/model/CreateApplicationRequest.h + include/alibabacloud/mse/model/CreateApplicationResult.h + include/alibabacloud/mse/model/CreateClusterRequest.h + include/alibabacloud/mse/model/CreateClusterResult.h + include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h + include/alibabacloud/mse/model/CreateEngineNamespaceResult.h + include/alibabacloud/mse/model/CreateNacosConfigRequest.h + include/alibabacloud/mse/model/CreateNacosConfigResult.h + include/alibabacloud/mse/model/CreateNacosInstanceRequest.h + include/alibabacloud/mse/model/CreateNacosInstanceResult.h + include/alibabacloud/mse/model/CreateNacosServiceRequest.h + include/alibabacloud/mse/model/CreateNacosServiceResult.h + include/alibabacloud/mse/model/CreateZnodeRequest.h + include/alibabacloud/mse/model/CreateZnodeResult.h + include/alibabacloud/mse/model/DeleteAlarmRuleRequest.h + include/alibabacloud/mse/model/DeleteAlarmRuleResult.h + include/alibabacloud/mse/model/DeleteAuthResourceRequest.h + include/alibabacloud/mse/model/DeleteAuthResourceResult.h + include/alibabacloud/mse/model/DeleteClusterRequest.h + include/alibabacloud/mse/model/DeleteClusterResult.h + include/alibabacloud/mse/model/DeleteEngineNamespaceRequest.h + include/alibabacloud/mse/model/DeleteEngineNamespaceResult.h + include/alibabacloud/mse/model/DeleteGatewayRequest.h + include/alibabacloud/mse/model/DeleteGatewayResult.h + include/alibabacloud/mse/model/DeleteGatewayDomainRequest.h + include/alibabacloud/mse/model/DeleteGatewayDomainResult.h + include/alibabacloud/mse/model/DeleteGatewayServiceVersionRequest.h + include/alibabacloud/mse/model/DeleteGatewayServiceVersionResult.h + include/alibabacloud/mse/model/DeleteGatewaySlbRequest.h + include/alibabacloud/mse/model/DeleteGatewaySlbResult.h + include/alibabacloud/mse/model/DeleteNacosConfigRequest.h + include/alibabacloud/mse/model/DeleteNacosConfigResult.h + include/alibabacloud/mse/model/DeleteNacosConfigsRequest.h + include/alibabacloud/mse/model/DeleteNacosConfigsResult.h + include/alibabacloud/mse/model/DeleteNacosServiceRequest.h + include/alibabacloud/mse/model/DeleteNacosServiceResult.h + include/alibabacloud/mse/model/DeleteServiceSourceRequest.h + include/alibabacloud/mse/model/DeleteServiceSourceResult.h + include/alibabacloud/mse/model/DeleteZnodeRequest.h + include/alibabacloud/mse/model/DeleteZnodeResult.h + include/alibabacloud/mse/model/ExportNacosConfigRequest.h + include/alibabacloud/mse/model/ExportNacosConfigResult.h + include/alibabacloud/mse/model/GetBlackWhiteListRequest.h + include/alibabacloud/mse/model/GetBlackWhiteListResult.h + include/alibabacloud/mse/model/GetEngineNamepaceRequest.h + include/alibabacloud/mse/model/GetEngineNamepaceResult.h + include/alibabacloud/mse/model/GetGatewayRequest.h + include/alibabacloud/mse/model/GetGatewayResult.h + include/alibabacloud/mse/model/GetGatewayDomainDetailRequest.h + include/alibabacloud/mse/model/GetGatewayDomainDetailResult.h + include/alibabacloud/mse/model/GetGatewayOptionRequest.h + include/alibabacloud/mse/model/GetGatewayOptionResult.h + include/alibabacloud/mse/model/GetGatewayServiceDetailRequest.h + include/alibabacloud/mse/model/GetGatewayServiceDetailResult.h + include/alibabacloud/mse/model/GetGovernanceKubernetesClusterRequest.h + include/alibabacloud/mse/model/GetGovernanceKubernetesClusterResult.h + include/alibabacloud/mse/model/GetGovernanceKubernetesClusterListRequest.h + include/alibabacloud/mse/model/GetGovernanceKubernetesClusterListResult.h + include/alibabacloud/mse/model/GetImageRequest.h + include/alibabacloud/mse/model/GetImageResult.h + include/alibabacloud/mse/model/GetImportFileUrlRequest.h + include/alibabacloud/mse/model/GetImportFileUrlResult.h + include/alibabacloud/mse/model/GetKubernetesSourceRequest.h + include/alibabacloud/mse/model/GetKubernetesSourceResult.h + include/alibabacloud/mse/model/GetMseFeatureSwitchRequest.h + include/alibabacloud/mse/model/GetMseFeatureSwitchResult.h + include/alibabacloud/mse/model/GetMseSourceRequest.h + include/alibabacloud/mse/model/GetMseSourceResult.h + include/alibabacloud/mse/model/GetNacosConfigRequest.h + include/alibabacloud/mse/model/GetNacosConfigResult.h + include/alibabacloud/mse/model/GetNacosHistoryConfigRequest.h + include/alibabacloud/mse/model/GetNacosHistoryConfigResult.h + include/alibabacloud/mse/model/GetOverviewRequest.h + include/alibabacloud/mse/model/GetOverviewResult.h + include/alibabacloud/mse/model/ImportNacosConfigRequest.h + include/alibabacloud/mse/model/ImportNacosConfigResult.h + include/alibabacloud/mse/model/ImportServicesRequest.h + include/alibabacloud/mse/model/ImportServicesResult.h + include/alibabacloud/mse/model/ListAlarmContactGroupsRequest.h + include/alibabacloud/mse/model/ListAlarmContactGroupsResult.h + include/alibabacloud/mse/model/ListAlarmHistoriesRequest.h + include/alibabacloud/mse/model/ListAlarmHistoriesResult.h + include/alibabacloud/mse/model/ListAlarmItemsRequest.h + include/alibabacloud/mse/model/ListAlarmItemsResult.h + include/alibabacloud/mse/model/ListAlarmRulesRequest.h + include/alibabacloud/mse/model/ListAlarmRulesResult.h + include/alibabacloud/mse/model/ListAnsInstancesRequest.h + include/alibabacloud/mse/model/ListAnsInstancesResult.h + include/alibabacloud/mse/model/ListAnsServiceClustersRequest.h + include/alibabacloud/mse/model/ListAnsServiceClustersResult.h + include/alibabacloud/mse/model/ListAnsServicesRequest.h + include/alibabacloud/mse/model/ListAnsServicesResult.h + include/alibabacloud/mse/model/ListClusterConnectionTypesRequest.h + include/alibabacloud/mse/model/ListClusterConnectionTypesResult.h + include/alibabacloud/mse/model/ListClusterTypesRequest.h + include/alibabacloud/mse/model/ListClusterTypesResult.h + include/alibabacloud/mse/model/ListClusterVersionsRequest.h + include/alibabacloud/mse/model/ListClusterVersionsResult.h + include/alibabacloud/mse/model/ListClustersRequest.h + include/alibabacloud/mse/model/ListClustersResult.h + include/alibabacloud/mse/model/ListEngineNamespacesRequest.h + include/alibabacloud/mse/model/ListEngineNamespacesResult.h + include/alibabacloud/mse/model/ListEurekaInstancesRequest.h + include/alibabacloud/mse/model/ListEurekaInstancesResult.h + include/alibabacloud/mse/model/ListEurekaServicesRequest.h + include/alibabacloud/mse/model/ListEurekaServicesResult.h + include/alibabacloud/mse/model/ListGatewayRequest.h + include/alibabacloud/mse/model/ListGatewayResult.h + include/alibabacloud/mse/model/ListGatewayDomainRequest.h + include/alibabacloud/mse/model/ListGatewayDomainResult.h + include/alibabacloud/mse/model/ListGatewayServiceRequest.h + include/alibabacloud/mse/model/ListGatewayServiceResult.h + include/alibabacloud/mse/model/ListGatewaySlbRequest.h + include/alibabacloud/mse/model/ListGatewaySlbResult.h + include/alibabacloud/mse/model/ListListenersByConfigRequest.h + include/alibabacloud/mse/model/ListListenersByConfigResult.h + include/alibabacloud/mse/model/ListListenersByIpRequest.h + include/alibabacloud/mse/model/ListListenersByIpResult.h + include/alibabacloud/mse/model/ListNacosConfigsRequest.h + include/alibabacloud/mse/model/ListNacosConfigsResult.h + include/alibabacloud/mse/model/ListNacosHistoryConfigsRequest.h + include/alibabacloud/mse/model/ListNacosHistoryConfigsResult.h + include/alibabacloud/mse/model/ListSSLCertRequest.h + include/alibabacloud/mse/model/ListSSLCertResult.h + include/alibabacloud/mse/model/ListServiceSourceRequest.h + include/alibabacloud/mse/model/ListServiceSourceResult.h + include/alibabacloud/mse/model/ListZnodeChildrenRequest.h + include/alibabacloud/mse/model/ListZnodeChildrenResult.h + include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterRequest.h + include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterResult.h + include/alibabacloud/mse/model/PullServicesRequest.h + include/alibabacloud/mse/model/PullServicesResult.h + include/alibabacloud/mse/model/QueryBusinessLocationsRequest.h + include/alibabacloud/mse/model/QueryBusinessLocationsResult.h + include/alibabacloud/mse/model/QueryClusterDetailRequest.h + include/alibabacloud/mse/model/QueryClusterDetailResult.h + include/alibabacloud/mse/model/QueryClusterDiskSpecificationRequest.h + include/alibabacloud/mse/model/QueryClusterDiskSpecificationResult.h + include/alibabacloud/mse/model/QueryClusterSpecificationRequest.h + include/alibabacloud/mse/model/QueryClusterSpecificationResult.h + include/alibabacloud/mse/model/QueryConfigRequest.h + include/alibabacloud/mse/model/QueryConfigResult.h + include/alibabacloud/mse/model/QueryGatewayRegionRequest.h + include/alibabacloud/mse/model/QueryGatewayRegionResult.h + include/alibabacloud/mse/model/QueryGatewayTypeRequest.h + include/alibabacloud/mse/model/QueryGatewayTypeResult.h + include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterRequest.h + include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterResult.h + include/alibabacloud/mse/model/QueryMonitorRequest.h + include/alibabacloud/mse/model/QueryMonitorResult.h + include/alibabacloud/mse/model/QuerySlbSpecRequest.h + include/alibabacloud/mse/model/QuerySlbSpecResult.h + include/alibabacloud/mse/model/QueryZnodeDetailRequest.h + include/alibabacloud/mse/model/QueryZnodeDetailResult.h + include/alibabacloud/mse/model/RestartClusterRequest.h + include/alibabacloud/mse/model/RestartClusterResult.h + include/alibabacloud/mse/model/RetryClusterRequest.h + include/alibabacloud/mse/model/RetryClusterResult.h + include/alibabacloud/mse/model/ScalingClusterRequest.h + include/alibabacloud/mse/model/ScalingClusterResult.h + include/alibabacloud/mse/model/SelectGatewaySlbRequest.h + include/alibabacloud/mse/model/SelectGatewaySlbResult.h + include/alibabacloud/mse/model/UpdateAclRequest.h + include/alibabacloud/mse/model/UpdateAclResult.h + include/alibabacloud/mse/model/UpdateBlackWhiteListRequest.h + include/alibabacloud/mse/model/UpdateBlackWhiteListResult.h + include/alibabacloud/mse/model/UpdateClusterRequest.h + include/alibabacloud/mse/model/UpdateClusterResult.h + include/alibabacloud/mse/model/UpdateConfigRequest.h + include/alibabacloud/mse/model/UpdateConfigResult.h + include/alibabacloud/mse/model/UpdateEngineNamespaceRequest.h + include/alibabacloud/mse/model/UpdateEngineNamespaceResult.h + include/alibabacloud/mse/model/UpdateGatewayDomainRequest.h + include/alibabacloud/mse/model/UpdateGatewayDomainResult.h + include/alibabacloud/mse/model/UpdateGatewayNameRequest.h + include/alibabacloud/mse/model/UpdateGatewayNameResult.h + include/alibabacloud/mse/model/UpdateGatewayOptionRequest.h + include/alibabacloud/mse/model/UpdateGatewayOptionResult.h + include/alibabacloud/mse/model/UpdateGatewayRouteHTTPRewriteRequest.h + include/alibabacloud/mse/model/UpdateGatewayRouteHTTPRewriteResult.h + include/alibabacloud/mse/model/UpdateGatewayServiceVersionRequest.h + include/alibabacloud/mse/model/UpdateGatewayServiceVersionResult.h + include/alibabacloud/mse/model/UpdateImageRequest.h + include/alibabacloud/mse/model/UpdateImageResult.h + include/alibabacloud/mse/model/UpdateNacosClusterRequest.h + include/alibabacloud/mse/model/UpdateNacosClusterResult.h + include/alibabacloud/mse/model/UpdateNacosConfigRequest.h + include/alibabacloud/mse/model/UpdateNacosConfigResult.h + include/alibabacloud/mse/model/UpdateNacosInstanceRequest.h + include/alibabacloud/mse/model/UpdateNacosInstanceResult.h + include/alibabacloud/mse/model/UpdateNacosServiceRequest.h + include/alibabacloud/mse/model/UpdateNacosServiceResult.h + include/alibabacloud/mse/model/UpdateSSLCertRequest.h + include/alibabacloud/mse/model/UpdateSSLCertResult.h + include/alibabacloud/mse/model/UpdateZnodeRequest.h + include/alibabacloud/mse/model/UpdateZnodeResult.h + include/alibabacloud/mse/model/UpgradeClusterRequest.h + include/alibabacloud/mse/model/UpgradeClusterResult.h ) + +set(mse_src + src/MseClient.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/AddGatewayDomainRequest.cc + src/model/AddGatewayDomainResult.cc + src/model/AddGatewayServiceVersionRequest.cc + src/model/AddGatewayServiceVersionResult.cc + src/model/AddGatewaySlbRequest.cc + src/model/AddGatewaySlbResult.cc + src/model/AddMockRuleRequest.cc + src/model/AddMockRuleResult.cc + src/model/AddSSLCertRequest.cc + src/model/AddSSLCertResult.cc + src/model/AddServiceSourceRequest.cc + src/model/AddServiceSourceResult.cc + src/model/CloneNacosConfigRequest.cc + src/model/CloneNacosConfigResult.cc + src/model/CreateAlarmRuleRequest.cc + src/model/CreateAlarmRuleResult.cc + src/model/CreateApplicationRequest.cc + src/model/CreateApplicationResult.cc + src/model/CreateClusterRequest.cc + src/model/CreateClusterResult.cc + src/model/CreateEngineNamespaceRequest.cc + src/model/CreateEngineNamespaceResult.cc + src/model/CreateNacosConfigRequest.cc + src/model/CreateNacosConfigResult.cc + src/model/CreateNacosInstanceRequest.cc + src/model/CreateNacosInstanceResult.cc + src/model/CreateNacosServiceRequest.cc + src/model/CreateNacosServiceResult.cc + src/model/CreateZnodeRequest.cc + src/model/CreateZnodeResult.cc + src/model/DeleteAlarmRuleRequest.cc + src/model/DeleteAlarmRuleResult.cc + src/model/DeleteAuthResourceRequest.cc + src/model/DeleteAuthResourceResult.cc + src/model/DeleteClusterRequest.cc + src/model/DeleteClusterResult.cc + src/model/DeleteEngineNamespaceRequest.cc + src/model/DeleteEngineNamespaceResult.cc + src/model/DeleteGatewayRequest.cc + src/model/DeleteGatewayResult.cc + src/model/DeleteGatewayDomainRequest.cc + src/model/DeleteGatewayDomainResult.cc + src/model/DeleteGatewayServiceVersionRequest.cc + src/model/DeleteGatewayServiceVersionResult.cc + src/model/DeleteGatewaySlbRequest.cc + src/model/DeleteGatewaySlbResult.cc + src/model/DeleteNacosConfigRequest.cc + src/model/DeleteNacosConfigResult.cc + src/model/DeleteNacosConfigsRequest.cc + src/model/DeleteNacosConfigsResult.cc + src/model/DeleteNacosServiceRequest.cc + src/model/DeleteNacosServiceResult.cc + src/model/DeleteServiceSourceRequest.cc + src/model/DeleteServiceSourceResult.cc + src/model/DeleteZnodeRequest.cc + src/model/DeleteZnodeResult.cc + src/model/ExportNacosConfigRequest.cc + src/model/ExportNacosConfigResult.cc + src/model/GetBlackWhiteListRequest.cc + src/model/GetBlackWhiteListResult.cc + src/model/GetEngineNamepaceRequest.cc + src/model/GetEngineNamepaceResult.cc + src/model/GetGatewayRequest.cc + src/model/GetGatewayResult.cc + src/model/GetGatewayDomainDetailRequest.cc + src/model/GetGatewayDomainDetailResult.cc + src/model/GetGatewayOptionRequest.cc + src/model/GetGatewayOptionResult.cc + src/model/GetGatewayServiceDetailRequest.cc + src/model/GetGatewayServiceDetailResult.cc + src/model/GetGovernanceKubernetesClusterRequest.cc + src/model/GetGovernanceKubernetesClusterResult.cc + src/model/GetGovernanceKubernetesClusterListRequest.cc + src/model/GetGovernanceKubernetesClusterListResult.cc + src/model/GetImageRequest.cc + src/model/GetImageResult.cc + src/model/GetImportFileUrlRequest.cc + src/model/GetImportFileUrlResult.cc + src/model/GetKubernetesSourceRequest.cc + src/model/GetKubernetesSourceResult.cc + src/model/GetMseFeatureSwitchRequest.cc + src/model/GetMseFeatureSwitchResult.cc + src/model/GetMseSourceRequest.cc + src/model/GetMseSourceResult.cc + src/model/GetNacosConfigRequest.cc + src/model/GetNacosConfigResult.cc + src/model/GetNacosHistoryConfigRequest.cc + src/model/GetNacosHistoryConfigResult.cc + src/model/GetOverviewRequest.cc + src/model/GetOverviewResult.cc + src/model/ImportNacosConfigRequest.cc + src/model/ImportNacosConfigResult.cc + src/model/ImportServicesRequest.cc + src/model/ImportServicesResult.cc + src/model/ListAlarmContactGroupsRequest.cc + src/model/ListAlarmContactGroupsResult.cc + src/model/ListAlarmHistoriesRequest.cc + src/model/ListAlarmHistoriesResult.cc + src/model/ListAlarmItemsRequest.cc + src/model/ListAlarmItemsResult.cc + src/model/ListAlarmRulesRequest.cc + src/model/ListAlarmRulesResult.cc + src/model/ListAnsInstancesRequest.cc + src/model/ListAnsInstancesResult.cc + src/model/ListAnsServiceClustersRequest.cc + src/model/ListAnsServiceClustersResult.cc + src/model/ListAnsServicesRequest.cc + src/model/ListAnsServicesResult.cc + src/model/ListClusterConnectionTypesRequest.cc + src/model/ListClusterConnectionTypesResult.cc + src/model/ListClusterTypesRequest.cc + src/model/ListClusterTypesResult.cc + src/model/ListClusterVersionsRequest.cc + src/model/ListClusterVersionsResult.cc + src/model/ListClustersRequest.cc + src/model/ListClustersResult.cc + src/model/ListEngineNamespacesRequest.cc + src/model/ListEngineNamespacesResult.cc + src/model/ListEurekaInstancesRequest.cc + src/model/ListEurekaInstancesResult.cc + src/model/ListEurekaServicesRequest.cc + src/model/ListEurekaServicesResult.cc + src/model/ListGatewayRequest.cc + src/model/ListGatewayResult.cc + src/model/ListGatewayDomainRequest.cc + src/model/ListGatewayDomainResult.cc + src/model/ListGatewayServiceRequest.cc + src/model/ListGatewayServiceResult.cc + src/model/ListGatewaySlbRequest.cc + src/model/ListGatewaySlbResult.cc + src/model/ListListenersByConfigRequest.cc + src/model/ListListenersByConfigResult.cc + src/model/ListListenersByIpRequest.cc + src/model/ListListenersByIpResult.cc + src/model/ListNacosConfigsRequest.cc + src/model/ListNacosConfigsResult.cc + src/model/ListNacosHistoryConfigsRequest.cc + src/model/ListNacosHistoryConfigsResult.cc + src/model/ListSSLCertRequest.cc + src/model/ListSSLCertResult.cc + src/model/ListServiceSourceRequest.cc + src/model/ListServiceSourceResult.cc + src/model/ListZnodeChildrenRequest.cc + src/model/ListZnodeChildrenResult.cc + src/model/ModifyGovernanceKubernetesClusterRequest.cc + src/model/ModifyGovernanceKubernetesClusterResult.cc + src/model/PullServicesRequest.cc + src/model/PullServicesResult.cc + src/model/QueryBusinessLocationsRequest.cc + src/model/QueryBusinessLocationsResult.cc + src/model/QueryClusterDetailRequest.cc + src/model/QueryClusterDetailResult.cc + src/model/QueryClusterDiskSpecificationRequest.cc + src/model/QueryClusterDiskSpecificationResult.cc + src/model/QueryClusterSpecificationRequest.cc + src/model/QueryClusterSpecificationResult.cc + src/model/QueryConfigRequest.cc + src/model/QueryConfigResult.cc + src/model/QueryGatewayRegionRequest.cc + src/model/QueryGatewayRegionResult.cc + src/model/QueryGatewayTypeRequest.cc + src/model/QueryGatewayTypeResult.cc + src/model/QueryGovernanceKubernetesClusterRequest.cc + src/model/QueryGovernanceKubernetesClusterResult.cc + src/model/QueryMonitorRequest.cc + src/model/QueryMonitorResult.cc + src/model/QuerySlbSpecRequest.cc + src/model/QuerySlbSpecResult.cc + src/model/QueryZnodeDetailRequest.cc + src/model/QueryZnodeDetailResult.cc + src/model/RestartClusterRequest.cc + src/model/RestartClusterResult.cc + src/model/RetryClusterRequest.cc + src/model/RetryClusterResult.cc + src/model/ScalingClusterRequest.cc + src/model/ScalingClusterResult.cc + src/model/SelectGatewaySlbRequest.cc + src/model/SelectGatewaySlbResult.cc + src/model/UpdateAclRequest.cc + src/model/UpdateAclResult.cc + src/model/UpdateBlackWhiteListRequest.cc + src/model/UpdateBlackWhiteListResult.cc + src/model/UpdateClusterRequest.cc + src/model/UpdateClusterResult.cc + src/model/UpdateConfigRequest.cc + src/model/UpdateConfigResult.cc + src/model/UpdateEngineNamespaceRequest.cc + src/model/UpdateEngineNamespaceResult.cc + src/model/UpdateGatewayDomainRequest.cc + src/model/UpdateGatewayDomainResult.cc + src/model/UpdateGatewayNameRequest.cc + src/model/UpdateGatewayNameResult.cc + src/model/UpdateGatewayOptionRequest.cc + src/model/UpdateGatewayOptionResult.cc + src/model/UpdateGatewayRouteHTTPRewriteRequest.cc + src/model/UpdateGatewayRouteHTTPRewriteResult.cc + src/model/UpdateGatewayServiceVersionRequest.cc + src/model/UpdateGatewayServiceVersionResult.cc + src/model/UpdateImageRequest.cc + src/model/UpdateImageResult.cc + src/model/UpdateNacosClusterRequest.cc + src/model/UpdateNacosClusterResult.cc + src/model/UpdateNacosConfigRequest.cc + src/model/UpdateNacosConfigResult.cc + src/model/UpdateNacosInstanceRequest.cc + src/model/UpdateNacosInstanceResult.cc + src/model/UpdateNacosServiceRequest.cc + src/model/UpdateNacosServiceResult.cc + src/model/UpdateSSLCertRequest.cc + src/model/UpdateSSLCertResult.cc + src/model/UpdateZnodeRequest.cc + src/model/UpdateZnodeResult.cc + src/model/UpgradeClusterRequest.cc + src/model/UpgradeClusterResult.cc ) + +add_library(mse ${LIB_TYPE} + ${mse_public_header} + ${mse_public_header_model} + ${mse_src}) + +set_target_properties(mse + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}mse + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(mse + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_MSE_LIBRARY) +endif() + +target_include_directories(mse + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(mse + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(mse + jsoncpp) + target_include_directories(mse + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(mse + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(mse + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(mse + PRIVATE /usr/include/jsoncpp) + target_link_libraries(mse + jsoncpp) +endif() + +install(FILES ${mse_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/mse) +install(FILES ${mse_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/mse/model) +install(TARGETS mse + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/MseClient.h b/mse/include/alibabacloud/mse/MseClient.h new file mode 100644 index 000000000..bb143622e --- /dev/null +++ b/mse/include/alibabacloud/mse/MseClient.h @@ -0,0 +1,926 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_MSECLIENT_H_ +#define ALIBABACLOUD_MSE_MSECLIENT_H_ + +#include +#include +#include +#include +#include "MseExport.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/AddGatewayDomainRequest.h" +#include "model/AddGatewayDomainResult.h" +#include "model/AddGatewayServiceVersionRequest.h" +#include "model/AddGatewayServiceVersionResult.h" +#include "model/AddGatewaySlbRequest.h" +#include "model/AddGatewaySlbResult.h" +#include "model/AddMockRuleRequest.h" +#include "model/AddMockRuleResult.h" +#include "model/AddSSLCertRequest.h" +#include "model/AddSSLCertResult.h" +#include "model/AddServiceSourceRequest.h" +#include "model/AddServiceSourceResult.h" +#include "model/CloneNacosConfigRequest.h" +#include "model/CloneNacosConfigResult.h" +#include "model/CreateAlarmRuleRequest.h" +#include "model/CreateAlarmRuleResult.h" +#include "model/CreateApplicationRequest.h" +#include "model/CreateApplicationResult.h" +#include "model/CreateClusterRequest.h" +#include "model/CreateClusterResult.h" +#include "model/CreateEngineNamespaceRequest.h" +#include "model/CreateEngineNamespaceResult.h" +#include "model/CreateNacosConfigRequest.h" +#include "model/CreateNacosConfigResult.h" +#include "model/CreateNacosInstanceRequest.h" +#include "model/CreateNacosInstanceResult.h" +#include "model/CreateNacosServiceRequest.h" +#include "model/CreateNacosServiceResult.h" +#include "model/CreateZnodeRequest.h" +#include "model/CreateZnodeResult.h" +#include "model/DeleteAlarmRuleRequest.h" +#include "model/DeleteAlarmRuleResult.h" +#include "model/DeleteAuthResourceRequest.h" +#include "model/DeleteAuthResourceResult.h" +#include "model/DeleteClusterRequest.h" +#include "model/DeleteClusterResult.h" +#include "model/DeleteEngineNamespaceRequest.h" +#include "model/DeleteEngineNamespaceResult.h" +#include "model/DeleteGatewayRequest.h" +#include "model/DeleteGatewayResult.h" +#include "model/DeleteGatewayDomainRequest.h" +#include "model/DeleteGatewayDomainResult.h" +#include "model/DeleteGatewayServiceVersionRequest.h" +#include "model/DeleteGatewayServiceVersionResult.h" +#include "model/DeleteGatewaySlbRequest.h" +#include "model/DeleteGatewaySlbResult.h" +#include "model/DeleteNacosConfigRequest.h" +#include "model/DeleteNacosConfigResult.h" +#include "model/DeleteNacosConfigsRequest.h" +#include "model/DeleteNacosConfigsResult.h" +#include "model/DeleteNacosServiceRequest.h" +#include "model/DeleteNacosServiceResult.h" +#include "model/DeleteServiceSourceRequest.h" +#include "model/DeleteServiceSourceResult.h" +#include "model/DeleteZnodeRequest.h" +#include "model/DeleteZnodeResult.h" +#include "model/ExportNacosConfigRequest.h" +#include "model/ExportNacosConfigResult.h" +#include "model/GetBlackWhiteListRequest.h" +#include "model/GetBlackWhiteListResult.h" +#include "model/GetEngineNamepaceRequest.h" +#include "model/GetEngineNamepaceResult.h" +#include "model/GetGatewayRequest.h" +#include "model/GetGatewayResult.h" +#include "model/GetGatewayDomainDetailRequest.h" +#include "model/GetGatewayDomainDetailResult.h" +#include "model/GetGatewayOptionRequest.h" +#include "model/GetGatewayOptionResult.h" +#include "model/GetGatewayServiceDetailRequest.h" +#include "model/GetGatewayServiceDetailResult.h" +#include "model/GetGovernanceKubernetesClusterRequest.h" +#include "model/GetGovernanceKubernetesClusterResult.h" +#include "model/GetGovernanceKubernetesClusterListRequest.h" +#include "model/GetGovernanceKubernetesClusterListResult.h" +#include "model/GetImageRequest.h" +#include "model/GetImageResult.h" +#include "model/GetImportFileUrlRequest.h" +#include "model/GetImportFileUrlResult.h" +#include "model/GetKubernetesSourceRequest.h" +#include "model/GetKubernetesSourceResult.h" +#include "model/GetMseFeatureSwitchRequest.h" +#include "model/GetMseFeatureSwitchResult.h" +#include "model/GetMseSourceRequest.h" +#include "model/GetMseSourceResult.h" +#include "model/GetNacosConfigRequest.h" +#include "model/GetNacosConfigResult.h" +#include "model/GetNacosHistoryConfigRequest.h" +#include "model/GetNacosHistoryConfigResult.h" +#include "model/GetOverviewRequest.h" +#include "model/GetOverviewResult.h" +#include "model/ImportNacosConfigRequest.h" +#include "model/ImportNacosConfigResult.h" +#include "model/ImportServicesRequest.h" +#include "model/ImportServicesResult.h" +#include "model/ListAlarmContactGroupsRequest.h" +#include "model/ListAlarmContactGroupsResult.h" +#include "model/ListAlarmHistoriesRequest.h" +#include "model/ListAlarmHistoriesResult.h" +#include "model/ListAlarmItemsRequest.h" +#include "model/ListAlarmItemsResult.h" +#include "model/ListAlarmRulesRequest.h" +#include "model/ListAlarmRulesResult.h" +#include "model/ListAnsInstancesRequest.h" +#include "model/ListAnsInstancesResult.h" +#include "model/ListAnsServiceClustersRequest.h" +#include "model/ListAnsServiceClustersResult.h" +#include "model/ListAnsServicesRequest.h" +#include "model/ListAnsServicesResult.h" +#include "model/ListClusterConnectionTypesRequest.h" +#include "model/ListClusterConnectionTypesResult.h" +#include "model/ListClusterTypesRequest.h" +#include "model/ListClusterTypesResult.h" +#include "model/ListClusterVersionsRequest.h" +#include "model/ListClusterVersionsResult.h" +#include "model/ListClustersRequest.h" +#include "model/ListClustersResult.h" +#include "model/ListEngineNamespacesRequest.h" +#include "model/ListEngineNamespacesResult.h" +#include "model/ListEurekaInstancesRequest.h" +#include "model/ListEurekaInstancesResult.h" +#include "model/ListEurekaServicesRequest.h" +#include "model/ListEurekaServicesResult.h" +#include "model/ListGatewayRequest.h" +#include "model/ListGatewayResult.h" +#include "model/ListGatewayDomainRequest.h" +#include "model/ListGatewayDomainResult.h" +#include "model/ListGatewayServiceRequest.h" +#include "model/ListGatewayServiceResult.h" +#include "model/ListGatewaySlbRequest.h" +#include "model/ListGatewaySlbResult.h" +#include "model/ListListenersByConfigRequest.h" +#include "model/ListListenersByConfigResult.h" +#include "model/ListListenersByIpRequest.h" +#include "model/ListListenersByIpResult.h" +#include "model/ListNacosConfigsRequest.h" +#include "model/ListNacosConfigsResult.h" +#include "model/ListNacosHistoryConfigsRequest.h" +#include "model/ListNacosHistoryConfigsResult.h" +#include "model/ListSSLCertRequest.h" +#include "model/ListSSLCertResult.h" +#include "model/ListServiceSourceRequest.h" +#include "model/ListServiceSourceResult.h" +#include "model/ListZnodeChildrenRequest.h" +#include "model/ListZnodeChildrenResult.h" +#include "model/ModifyGovernanceKubernetesClusterRequest.h" +#include "model/ModifyGovernanceKubernetesClusterResult.h" +#include "model/PullServicesRequest.h" +#include "model/PullServicesResult.h" +#include "model/QueryBusinessLocationsRequest.h" +#include "model/QueryBusinessLocationsResult.h" +#include "model/QueryClusterDetailRequest.h" +#include "model/QueryClusterDetailResult.h" +#include "model/QueryClusterDiskSpecificationRequest.h" +#include "model/QueryClusterDiskSpecificationResult.h" +#include "model/QueryClusterSpecificationRequest.h" +#include "model/QueryClusterSpecificationResult.h" +#include "model/QueryConfigRequest.h" +#include "model/QueryConfigResult.h" +#include "model/QueryGatewayRegionRequest.h" +#include "model/QueryGatewayRegionResult.h" +#include "model/QueryGatewayTypeRequest.h" +#include "model/QueryGatewayTypeResult.h" +#include "model/QueryGovernanceKubernetesClusterRequest.h" +#include "model/QueryGovernanceKubernetesClusterResult.h" +#include "model/QueryMonitorRequest.h" +#include "model/QueryMonitorResult.h" +#include "model/QuerySlbSpecRequest.h" +#include "model/QuerySlbSpecResult.h" +#include "model/QueryZnodeDetailRequest.h" +#include "model/QueryZnodeDetailResult.h" +#include "model/RestartClusterRequest.h" +#include "model/RestartClusterResult.h" +#include "model/RetryClusterRequest.h" +#include "model/RetryClusterResult.h" +#include "model/ScalingClusterRequest.h" +#include "model/ScalingClusterResult.h" +#include "model/SelectGatewaySlbRequest.h" +#include "model/SelectGatewaySlbResult.h" +#include "model/UpdateAclRequest.h" +#include "model/UpdateAclResult.h" +#include "model/UpdateBlackWhiteListRequest.h" +#include "model/UpdateBlackWhiteListResult.h" +#include "model/UpdateClusterRequest.h" +#include "model/UpdateClusterResult.h" +#include "model/UpdateConfigRequest.h" +#include "model/UpdateConfigResult.h" +#include "model/UpdateEngineNamespaceRequest.h" +#include "model/UpdateEngineNamespaceResult.h" +#include "model/UpdateGatewayDomainRequest.h" +#include "model/UpdateGatewayDomainResult.h" +#include "model/UpdateGatewayNameRequest.h" +#include "model/UpdateGatewayNameResult.h" +#include "model/UpdateGatewayOptionRequest.h" +#include "model/UpdateGatewayOptionResult.h" +#include "model/UpdateGatewayRouteHTTPRewriteRequest.h" +#include "model/UpdateGatewayRouteHTTPRewriteResult.h" +#include "model/UpdateGatewayServiceVersionRequest.h" +#include "model/UpdateGatewayServiceVersionResult.h" +#include "model/UpdateImageRequest.h" +#include "model/UpdateImageResult.h" +#include "model/UpdateNacosClusterRequest.h" +#include "model/UpdateNacosClusterResult.h" +#include "model/UpdateNacosConfigRequest.h" +#include "model/UpdateNacosConfigResult.h" +#include "model/UpdateNacosInstanceRequest.h" +#include "model/UpdateNacosInstanceResult.h" +#include "model/UpdateNacosServiceRequest.h" +#include "model/UpdateNacosServiceResult.h" +#include "model/UpdateSSLCertRequest.h" +#include "model/UpdateSSLCertResult.h" +#include "model/UpdateZnodeRequest.h" +#include "model/UpdateZnodeResult.h" +#include "model/UpgradeClusterRequest.h" +#include "model/UpgradeClusterResult.h" + + +namespace AlibabaCloud +{ + namespace Mse + { + class ALIBABACLOUD_MSE_EXPORT MseClient : public RpcServiceClient + { + public: + typedef Outcome AddAuthResourceOutcome; + typedef std::future AddAuthResourceOutcomeCallable; + typedef std::function&)> AddAuthResourceAsyncHandler; + typedef Outcome AddBlackWhiteListOutcome; + typedef std::future AddBlackWhiteListOutcomeCallable; + typedef std::function&)> AddBlackWhiteListAsyncHandler; + typedef Outcome AddGatewayOutcome; + typedef std::future AddGatewayOutcomeCallable; + typedef std::function&)> AddGatewayAsyncHandler; + typedef Outcome AddGatewayDomainOutcome; + typedef std::future AddGatewayDomainOutcomeCallable; + typedef std::function&)> AddGatewayDomainAsyncHandler; + typedef Outcome AddGatewayServiceVersionOutcome; + typedef std::future AddGatewayServiceVersionOutcomeCallable; + typedef std::function&)> AddGatewayServiceVersionAsyncHandler; + typedef Outcome AddGatewaySlbOutcome; + typedef std::future AddGatewaySlbOutcomeCallable; + typedef std::function&)> AddGatewaySlbAsyncHandler; + typedef Outcome AddMockRuleOutcome; + typedef std::future AddMockRuleOutcomeCallable; + typedef std::function&)> AddMockRuleAsyncHandler; + typedef Outcome AddSSLCertOutcome; + typedef std::future AddSSLCertOutcomeCallable; + typedef std::function&)> AddSSLCertAsyncHandler; + typedef Outcome AddServiceSourceOutcome; + typedef std::future AddServiceSourceOutcomeCallable; + typedef std::function&)> AddServiceSourceAsyncHandler; + typedef Outcome CloneNacosConfigOutcome; + typedef std::future CloneNacosConfigOutcomeCallable; + typedef std::function&)> CloneNacosConfigAsyncHandler; + typedef Outcome CreateAlarmRuleOutcome; + typedef std::future CreateAlarmRuleOutcomeCallable; + typedef std::function&)> CreateAlarmRuleAsyncHandler; + typedef Outcome CreateApplicationOutcome; + typedef std::future CreateApplicationOutcomeCallable; + typedef std::function&)> CreateApplicationAsyncHandler; + typedef Outcome CreateClusterOutcome; + typedef std::future CreateClusterOutcomeCallable; + typedef std::function&)> CreateClusterAsyncHandler; + typedef Outcome CreateEngineNamespaceOutcome; + typedef std::future CreateEngineNamespaceOutcomeCallable; + typedef std::function&)> CreateEngineNamespaceAsyncHandler; + typedef Outcome CreateNacosConfigOutcome; + typedef std::future CreateNacosConfigOutcomeCallable; + typedef std::function&)> CreateNacosConfigAsyncHandler; + typedef Outcome CreateNacosInstanceOutcome; + typedef std::future CreateNacosInstanceOutcomeCallable; + typedef std::function&)> CreateNacosInstanceAsyncHandler; + typedef Outcome CreateNacosServiceOutcome; + typedef std::future CreateNacosServiceOutcomeCallable; + typedef std::function&)> CreateNacosServiceAsyncHandler; + typedef Outcome CreateZnodeOutcome; + typedef std::future CreateZnodeOutcomeCallable; + typedef std::function&)> CreateZnodeAsyncHandler; + typedef Outcome DeleteAlarmRuleOutcome; + typedef std::future DeleteAlarmRuleOutcomeCallable; + typedef std::function&)> DeleteAlarmRuleAsyncHandler; + typedef Outcome DeleteAuthResourceOutcome; + typedef std::future DeleteAuthResourceOutcomeCallable; + typedef std::function&)> DeleteAuthResourceAsyncHandler; + typedef Outcome DeleteClusterOutcome; + typedef std::future DeleteClusterOutcomeCallable; + typedef std::function&)> DeleteClusterAsyncHandler; + typedef Outcome DeleteEngineNamespaceOutcome; + typedef std::future DeleteEngineNamespaceOutcomeCallable; + typedef std::function&)> DeleteEngineNamespaceAsyncHandler; + typedef Outcome DeleteGatewayOutcome; + typedef std::future DeleteGatewayOutcomeCallable; + typedef std::function&)> DeleteGatewayAsyncHandler; + typedef Outcome DeleteGatewayDomainOutcome; + typedef std::future DeleteGatewayDomainOutcomeCallable; + typedef std::function&)> DeleteGatewayDomainAsyncHandler; + typedef Outcome DeleteGatewayServiceVersionOutcome; + typedef std::future DeleteGatewayServiceVersionOutcomeCallable; + typedef std::function&)> DeleteGatewayServiceVersionAsyncHandler; + typedef Outcome DeleteGatewaySlbOutcome; + typedef std::future DeleteGatewaySlbOutcomeCallable; + typedef std::function&)> DeleteGatewaySlbAsyncHandler; + typedef Outcome DeleteNacosConfigOutcome; + typedef std::future DeleteNacosConfigOutcomeCallable; + typedef std::function&)> DeleteNacosConfigAsyncHandler; + typedef Outcome DeleteNacosConfigsOutcome; + typedef std::future DeleteNacosConfigsOutcomeCallable; + typedef std::function&)> DeleteNacosConfigsAsyncHandler; + typedef Outcome DeleteNacosServiceOutcome; + typedef std::future DeleteNacosServiceOutcomeCallable; + typedef std::function&)> DeleteNacosServiceAsyncHandler; + typedef Outcome DeleteServiceSourceOutcome; + typedef std::future DeleteServiceSourceOutcomeCallable; + typedef std::function&)> DeleteServiceSourceAsyncHandler; + typedef Outcome DeleteZnodeOutcome; + typedef std::future DeleteZnodeOutcomeCallable; + typedef std::function&)> DeleteZnodeAsyncHandler; + typedef Outcome ExportNacosConfigOutcome; + typedef std::future ExportNacosConfigOutcomeCallable; + typedef std::function&)> ExportNacosConfigAsyncHandler; + typedef Outcome GetBlackWhiteListOutcome; + typedef std::future GetBlackWhiteListOutcomeCallable; + typedef std::function&)> GetBlackWhiteListAsyncHandler; + typedef Outcome GetEngineNamepaceOutcome; + typedef std::future GetEngineNamepaceOutcomeCallable; + typedef std::function&)> GetEngineNamepaceAsyncHandler; + typedef Outcome GetGatewayOutcome; + typedef std::future GetGatewayOutcomeCallable; + typedef std::function&)> GetGatewayAsyncHandler; + typedef Outcome GetGatewayDomainDetailOutcome; + typedef std::future GetGatewayDomainDetailOutcomeCallable; + typedef std::function&)> GetGatewayDomainDetailAsyncHandler; + typedef Outcome GetGatewayOptionOutcome; + typedef std::future GetGatewayOptionOutcomeCallable; + typedef std::function&)> GetGatewayOptionAsyncHandler; + typedef Outcome GetGatewayServiceDetailOutcome; + typedef std::future GetGatewayServiceDetailOutcomeCallable; + typedef std::function&)> GetGatewayServiceDetailAsyncHandler; + typedef Outcome GetGovernanceKubernetesClusterOutcome; + typedef std::future GetGovernanceKubernetesClusterOutcomeCallable; + typedef std::function&)> GetGovernanceKubernetesClusterAsyncHandler; + typedef Outcome GetGovernanceKubernetesClusterListOutcome; + typedef std::future GetGovernanceKubernetesClusterListOutcomeCallable; + typedef std::function&)> GetGovernanceKubernetesClusterListAsyncHandler; + typedef Outcome GetImageOutcome; + typedef std::future GetImageOutcomeCallable; + typedef std::function&)> GetImageAsyncHandler; + typedef Outcome GetImportFileUrlOutcome; + typedef std::future GetImportFileUrlOutcomeCallable; + typedef std::function&)> GetImportFileUrlAsyncHandler; + typedef Outcome GetKubernetesSourceOutcome; + typedef std::future GetKubernetesSourceOutcomeCallable; + typedef std::function&)> GetKubernetesSourceAsyncHandler; + typedef Outcome GetMseFeatureSwitchOutcome; + typedef std::future GetMseFeatureSwitchOutcomeCallable; + typedef std::function&)> GetMseFeatureSwitchAsyncHandler; + typedef Outcome GetMseSourceOutcome; + typedef std::future GetMseSourceOutcomeCallable; + typedef std::function&)> GetMseSourceAsyncHandler; + typedef Outcome GetNacosConfigOutcome; + typedef std::future GetNacosConfigOutcomeCallable; + typedef std::function&)> GetNacosConfigAsyncHandler; + typedef Outcome GetNacosHistoryConfigOutcome; + typedef std::future GetNacosHistoryConfigOutcomeCallable; + typedef std::function&)> GetNacosHistoryConfigAsyncHandler; + typedef Outcome GetOverviewOutcome; + typedef std::future GetOverviewOutcomeCallable; + typedef std::function&)> GetOverviewAsyncHandler; + typedef Outcome ImportNacosConfigOutcome; + typedef std::future ImportNacosConfigOutcomeCallable; + typedef std::function&)> ImportNacosConfigAsyncHandler; + typedef Outcome ImportServicesOutcome; + typedef std::future ImportServicesOutcomeCallable; + typedef std::function&)> ImportServicesAsyncHandler; + typedef Outcome ListAlarmContactGroupsOutcome; + typedef std::future ListAlarmContactGroupsOutcomeCallable; + typedef std::function&)> ListAlarmContactGroupsAsyncHandler; + typedef Outcome ListAlarmHistoriesOutcome; + typedef std::future ListAlarmHistoriesOutcomeCallable; + typedef std::function&)> ListAlarmHistoriesAsyncHandler; + typedef Outcome ListAlarmItemsOutcome; + typedef std::future ListAlarmItemsOutcomeCallable; + typedef std::function&)> ListAlarmItemsAsyncHandler; + typedef Outcome ListAlarmRulesOutcome; + typedef std::future ListAlarmRulesOutcomeCallable; + typedef std::function&)> ListAlarmRulesAsyncHandler; + typedef Outcome ListAnsInstancesOutcome; + typedef std::future ListAnsInstancesOutcomeCallable; + typedef std::function&)> ListAnsInstancesAsyncHandler; + typedef Outcome ListAnsServiceClustersOutcome; + typedef std::future ListAnsServiceClustersOutcomeCallable; + typedef std::function&)> ListAnsServiceClustersAsyncHandler; + typedef Outcome ListAnsServicesOutcome; + typedef std::future ListAnsServicesOutcomeCallable; + typedef std::function&)> ListAnsServicesAsyncHandler; + typedef Outcome ListClusterConnectionTypesOutcome; + typedef std::future ListClusterConnectionTypesOutcomeCallable; + typedef std::function&)> ListClusterConnectionTypesAsyncHandler; + typedef Outcome ListClusterTypesOutcome; + typedef std::future ListClusterTypesOutcomeCallable; + typedef std::function&)> ListClusterTypesAsyncHandler; + typedef Outcome ListClusterVersionsOutcome; + typedef std::future ListClusterVersionsOutcomeCallable; + typedef std::function&)> ListClusterVersionsAsyncHandler; + typedef Outcome ListClustersOutcome; + typedef std::future ListClustersOutcomeCallable; + typedef std::function&)> ListClustersAsyncHandler; + typedef Outcome ListEngineNamespacesOutcome; + typedef std::future ListEngineNamespacesOutcomeCallable; + typedef std::function&)> ListEngineNamespacesAsyncHandler; + typedef Outcome ListEurekaInstancesOutcome; + typedef std::future ListEurekaInstancesOutcomeCallable; + typedef std::function&)> ListEurekaInstancesAsyncHandler; + typedef Outcome ListEurekaServicesOutcome; + typedef std::future ListEurekaServicesOutcomeCallable; + typedef std::function&)> ListEurekaServicesAsyncHandler; + typedef Outcome ListGatewayOutcome; + typedef std::future ListGatewayOutcomeCallable; + typedef std::function&)> ListGatewayAsyncHandler; + typedef Outcome ListGatewayDomainOutcome; + typedef std::future ListGatewayDomainOutcomeCallable; + typedef std::function&)> ListGatewayDomainAsyncHandler; + typedef Outcome ListGatewayServiceOutcome; + typedef std::future ListGatewayServiceOutcomeCallable; + typedef std::function&)> ListGatewayServiceAsyncHandler; + typedef Outcome ListGatewaySlbOutcome; + typedef std::future ListGatewaySlbOutcomeCallable; + typedef std::function&)> ListGatewaySlbAsyncHandler; + typedef Outcome ListListenersByConfigOutcome; + typedef std::future ListListenersByConfigOutcomeCallable; + typedef std::function&)> ListListenersByConfigAsyncHandler; + typedef Outcome ListListenersByIpOutcome; + typedef std::future ListListenersByIpOutcomeCallable; + typedef std::function&)> ListListenersByIpAsyncHandler; + typedef Outcome ListNacosConfigsOutcome; + typedef std::future ListNacosConfigsOutcomeCallable; + typedef std::function&)> ListNacosConfigsAsyncHandler; + typedef Outcome ListNacosHistoryConfigsOutcome; + typedef std::future ListNacosHistoryConfigsOutcomeCallable; + typedef std::function&)> ListNacosHistoryConfigsAsyncHandler; + typedef Outcome ListSSLCertOutcome; + typedef std::future ListSSLCertOutcomeCallable; + typedef std::function&)> ListSSLCertAsyncHandler; + typedef Outcome ListServiceSourceOutcome; + typedef std::future ListServiceSourceOutcomeCallable; + typedef std::function&)> ListServiceSourceAsyncHandler; + typedef Outcome ListZnodeChildrenOutcome; + typedef std::future ListZnodeChildrenOutcomeCallable; + typedef std::function&)> ListZnodeChildrenAsyncHandler; + typedef Outcome ModifyGovernanceKubernetesClusterOutcome; + typedef std::future ModifyGovernanceKubernetesClusterOutcomeCallable; + typedef std::function&)> ModifyGovernanceKubernetesClusterAsyncHandler; + typedef Outcome PullServicesOutcome; + typedef std::future PullServicesOutcomeCallable; + typedef std::function&)> PullServicesAsyncHandler; + typedef Outcome QueryBusinessLocationsOutcome; + typedef std::future QueryBusinessLocationsOutcomeCallable; + typedef std::function&)> QueryBusinessLocationsAsyncHandler; + typedef Outcome QueryClusterDetailOutcome; + typedef std::future QueryClusterDetailOutcomeCallable; + typedef std::function&)> QueryClusterDetailAsyncHandler; + typedef Outcome QueryClusterDiskSpecificationOutcome; + typedef std::future QueryClusterDiskSpecificationOutcomeCallable; + typedef std::function&)> QueryClusterDiskSpecificationAsyncHandler; + typedef Outcome QueryClusterSpecificationOutcome; + typedef std::future QueryClusterSpecificationOutcomeCallable; + typedef std::function&)> QueryClusterSpecificationAsyncHandler; + typedef Outcome QueryConfigOutcome; + typedef std::future QueryConfigOutcomeCallable; + typedef std::function&)> QueryConfigAsyncHandler; + typedef Outcome QueryGatewayRegionOutcome; + typedef std::future QueryGatewayRegionOutcomeCallable; + typedef std::function&)> QueryGatewayRegionAsyncHandler; + typedef Outcome QueryGatewayTypeOutcome; + typedef std::future QueryGatewayTypeOutcomeCallable; + typedef std::function&)> QueryGatewayTypeAsyncHandler; + typedef Outcome QueryGovernanceKubernetesClusterOutcome; + typedef std::future QueryGovernanceKubernetesClusterOutcomeCallable; + typedef std::function&)> QueryGovernanceKubernetesClusterAsyncHandler; + typedef Outcome QueryMonitorOutcome; + typedef std::future QueryMonitorOutcomeCallable; + typedef std::function&)> QueryMonitorAsyncHandler; + typedef Outcome QuerySlbSpecOutcome; + typedef std::future QuerySlbSpecOutcomeCallable; + typedef std::function&)> QuerySlbSpecAsyncHandler; + typedef Outcome QueryZnodeDetailOutcome; + typedef std::future QueryZnodeDetailOutcomeCallable; + typedef std::function&)> QueryZnodeDetailAsyncHandler; + typedef Outcome RestartClusterOutcome; + typedef std::future RestartClusterOutcomeCallable; + typedef std::function&)> RestartClusterAsyncHandler; + typedef Outcome RetryClusterOutcome; + typedef std::future RetryClusterOutcomeCallable; + typedef std::function&)> RetryClusterAsyncHandler; + typedef Outcome ScalingClusterOutcome; + typedef std::future ScalingClusterOutcomeCallable; + typedef std::function&)> ScalingClusterAsyncHandler; + typedef Outcome SelectGatewaySlbOutcome; + typedef std::future SelectGatewaySlbOutcomeCallable; + typedef std::function&)> SelectGatewaySlbAsyncHandler; + typedef Outcome UpdateAclOutcome; + typedef std::future UpdateAclOutcomeCallable; + typedef std::function&)> UpdateAclAsyncHandler; + typedef Outcome UpdateBlackWhiteListOutcome; + typedef std::future UpdateBlackWhiteListOutcomeCallable; + typedef std::function&)> UpdateBlackWhiteListAsyncHandler; + typedef Outcome UpdateClusterOutcome; + typedef std::future UpdateClusterOutcomeCallable; + typedef std::function&)> UpdateClusterAsyncHandler; + typedef Outcome UpdateConfigOutcome; + typedef std::future UpdateConfigOutcomeCallable; + typedef std::function&)> UpdateConfigAsyncHandler; + typedef Outcome UpdateEngineNamespaceOutcome; + typedef std::future UpdateEngineNamespaceOutcomeCallable; + typedef std::function&)> UpdateEngineNamespaceAsyncHandler; + typedef Outcome UpdateGatewayDomainOutcome; + typedef std::future UpdateGatewayDomainOutcomeCallable; + typedef std::function&)> UpdateGatewayDomainAsyncHandler; + typedef Outcome UpdateGatewayNameOutcome; + typedef std::future UpdateGatewayNameOutcomeCallable; + typedef std::function&)> UpdateGatewayNameAsyncHandler; + typedef Outcome UpdateGatewayOptionOutcome; + typedef std::future UpdateGatewayOptionOutcomeCallable; + typedef std::function&)> UpdateGatewayOptionAsyncHandler; + typedef Outcome UpdateGatewayRouteHTTPRewriteOutcome; + typedef std::future UpdateGatewayRouteHTTPRewriteOutcomeCallable; + typedef std::function&)> UpdateGatewayRouteHTTPRewriteAsyncHandler; + typedef Outcome UpdateGatewayServiceVersionOutcome; + typedef std::future UpdateGatewayServiceVersionOutcomeCallable; + typedef std::function&)> UpdateGatewayServiceVersionAsyncHandler; + typedef Outcome UpdateImageOutcome; + typedef std::future UpdateImageOutcomeCallable; + typedef std::function&)> UpdateImageAsyncHandler; + typedef Outcome UpdateNacosClusterOutcome; + typedef std::future UpdateNacosClusterOutcomeCallable; + typedef std::function&)> UpdateNacosClusterAsyncHandler; + typedef Outcome UpdateNacosConfigOutcome; + typedef std::future UpdateNacosConfigOutcomeCallable; + typedef std::function&)> UpdateNacosConfigAsyncHandler; + typedef Outcome UpdateNacosInstanceOutcome; + typedef std::future UpdateNacosInstanceOutcomeCallable; + typedef std::function&)> UpdateNacosInstanceAsyncHandler; + typedef Outcome UpdateNacosServiceOutcome; + typedef std::future UpdateNacosServiceOutcomeCallable; + typedef std::function&)> UpdateNacosServiceAsyncHandler; + typedef Outcome UpdateSSLCertOutcome; + typedef std::future UpdateSSLCertOutcomeCallable; + typedef std::function&)> UpdateSSLCertAsyncHandler; + typedef Outcome UpdateZnodeOutcome; + typedef std::future UpdateZnodeOutcomeCallable; + typedef std::function&)> UpdateZnodeAsyncHandler; + typedef Outcome UpgradeClusterOutcome; + typedef std::future UpgradeClusterOutcomeCallable; + typedef std::function&)> UpgradeClusterAsyncHandler; + + MseClient(const Credentials &credentials, const ClientConfiguration &configuration); + MseClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + MseClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~MseClient(); + 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; + AddBlackWhiteListOutcome addBlackWhiteList(const Model::AddBlackWhiteListRequest &request)const; + void addBlackWhiteListAsync(const Model::AddBlackWhiteListRequest& request, const AddBlackWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddBlackWhiteListOutcomeCallable addBlackWhiteListCallable(const Model::AddBlackWhiteListRequest& request) const; + 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; + 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; + AddGatewayServiceVersionOutcome addGatewayServiceVersion(const Model::AddGatewayServiceVersionRequest &request)const; + void addGatewayServiceVersionAsync(const Model::AddGatewayServiceVersionRequest& request, const AddGatewayServiceVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddGatewayServiceVersionOutcomeCallable addGatewayServiceVersionCallable(const Model::AddGatewayServiceVersionRequest& request) const; + AddGatewaySlbOutcome addGatewaySlb(const Model::AddGatewaySlbRequest &request)const; + void addGatewaySlbAsync(const Model::AddGatewaySlbRequest& request, const AddGatewaySlbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddGatewaySlbOutcomeCallable addGatewaySlbCallable(const Model::AddGatewaySlbRequest& request) const; + AddMockRuleOutcome addMockRule(const Model::AddMockRuleRequest &request)const; + void addMockRuleAsync(const Model::AddMockRuleRequest& request, const AddMockRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddMockRuleOutcomeCallable addMockRuleCallable(const Model::AddMockRuleRequest& request) const; + AddSSLCertOutcome addSSLCert(const Model::AddSSLCertRequest &request)const; + void addSSLCertAsync(const Model::AddSSLCertRequest& request, const AddSSLCertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSSLCertOutcomeCallable addSSLCertCallable(const Model::AddSSLCertRequest& request) const; + AddServiceSourceOutcome addServiceSource(const Model::AddServiceSourceRequest &request)const; + void addServiceSourceAsync(const Model::AddServiceSourceRequest& request, const AddServiceSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddServiceSourceOutcomeCallable addServiceSourceCallable(const Model::AddServiceSourceRequest& request) const; + CloneNacosConfigOutcome cloneNacosConfig(const Model::CloneNacosConfigRequest &request)const; + void cloneNacosConfigAsync(const Model::CloneNacosConfigRequest& request, const CloneNacosConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CloneNacosConfigOutcomeCallable cloneNacosConfigCallable(const Model::CloneNacosConfigRequest& request) const; + CreateAlarmRuleOutcome createAlarmRule(const Model::CreateAlarmRuleRequest &request)const; + void createAlarmRuleAsync(const Model::CreateAlarmRuleRequest& request, const CreateAlarmRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAlarmRuleOutcomeCallable createAlarmRuleCallable(const Model::CreateAlarmRuleRequest& request) const; + CreateApplicationOutcome createApplication(const Model::CreateApplicationRequest &request)const; + void createApplicationAsync(const Model::CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateApplicationOutcomeCallable createApplicationCallable(const Model::CreateApplicationRequest& request) const; + 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; + CreateNacosConfigOutcome createNacosConfig(const Model::CreateNacosConfigRequest &request)const; + void createNacosConfigAsync(const Model::CreateNacosConfigRequest& request, const CreateNacosConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNacosConfigOutcomeCallable createNacosConfigCallable(const Model::CreateNacosConfigRequest& request) const; + CreateNacosInstanceOutcome createNacosInstance(const Model::CreateNacosInstanceRequest &request)const; + void createNacosInstanceAsync(const Model::CreateNacosInstanceRequest& request, const CreateNacosInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNacosInstanceOutcomeCallable createNacosInstanceCallable(const Model::CreateNacosInstanceRequest& request) const; + CreateNacosServiceOutcome createNacosService(const Model::CreateNacosServiceRequest &request)const; + void createNacosServiceAsync(const Model::CreateNacosServiceRequest& request, const CreateNacosServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNacosServiceOutcomeCallable createNacosServiceCallable(const Model::CreateNacosServiceRequest& request) const; + CreateZnodeOutcome createZnode(const Model::CreateZnodeRequest &request)const; + void createZnodeAsync(const Model::CreateZnodeRequest& request, const CreateZnodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateZnodeOutcomeCallable createZnodeCallable(const Model::CreateZnodeRequest& request) const; + DeleteAlarmRuleOutcome deleteAlarmRule(const Model::DeleteAlarmRuleRequest &request)const; + void deleteAlarmRuleAsync(const Model::DeleteAlarmRuleRequest& request, const DeleteAlarmRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAlarmRuleOutcomeCallable deleteAlarmRuleCallable(const Model::DeleteAlarmRuleRequest& request) const; + DeleteAuthResourceOutcome deleteAuthResource(const Model::DeleteAuthResourceRequest &request)const; + void deleteAuthResourceAsync(const Model::DeleteAuthResourceRequest& request, const DeleteAuthResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAuthResourceOutcomeCallable deleteAuthResourceCallable(const Model::DeleteAuthResourceRequest& request) const; + 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; + 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; + 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; + DeleteGatewayServiceVersionOutcome deleteGatewayServiceVersion(const Model::DeleteGatewayServiceVersionRequest &request)const; + void deleteGatewayServiceVersionAsync(const Model::DeleteGatewayServiceVersionRequest& request, const DeleteGatewayServiceVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGatewayServiceVersionOutcomeCallable deleteGatewayServiceVersionCallable(const Model::DeleteGatewayServiceVersionRequest& request) const; + DeleteGatewaySlbOutcome deleteGatewaySlb(const Model::DeleteGatewaySlbRequest &request)const; + void deleteGatewaySlbAsync(const Model::DeleteGatewaySlbRequest& request, const DeleteGatewaySlbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGatewaySlbOutcomeCallable deleteGatewaySlbCallable(const Model::DeleteGatewaySlbRequest& request) const; + DeleteNacosConfigOutcome deleteNacosConfig(const Model::DeleteNacosConfigRequest &request)const; + void deleteNacosConfigAsync(const Model::DeleteNacosConfigRequest& request, const DeleteNacosConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNacosConfigOutcomeCallable deleteNacosConfigCallable(const Model::DeleteNacosConfigRequest& request) const; + DeleteNacosConfigsOutcome deleteNacosConfigs(const Model::DeleteNacosConfigsRequest &request)const; + void deleteNacosConfigsAsync(const Model::DeleteNacosConfigsRequest& request, const DeleteNacosConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNacosConfigsOutcomeCallable deleteNacosConfigsCallable(const Model::DeleteNacosConfigsRequest& request) const; + 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; + DeleteServiceSourceOutcome deleteServiceSource(const Model::DeleteServiceSourceRequest &request)const; + void deleteServiceSourceAsync(const Model::DeleteServiceSourceRequest& request, const DeleteServiceSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteServiceSourceOutcomeCallable deleteServiceSourceCallable(const Model::DeleteServiceSourceRequest& request) const; + DeleteZnodeOutcome deleteZnode(const Model::DeleteZnodeRequest &request)const; + void deleteZnodeAsync(const Model::DeleteZnodeRequest& request, const DeleteZnodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteZnodeOutcomeCallable deleteZnodeCallable(const Model::DeleteZnodeRequest& request) const; + ExportNacosConfigOutcome exportNacosConfig(const Model::ExportNacosConfigRequest &request)const; + void exportNacosConfigAsync(const Model::ExportNacosConfigRequest& request, const ExportNacosConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExportNacosConfigOutcomeCallable exportNacosConfigCallable(const Model::ExportNacosConfigRequest& request) const; + GetBlackWhiteListOutcome getBlackWhiteList(const Model::GetBlackWhiteListRequest &request)const; + void getBlackWhiteListAsync(const Model::GetBlackWhiteListRequest& request, const GetBlackWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBlackWhiteListOutcomeCallable getBlackWhiteListCallable(const Model::GetBlackWhiteListRequest& request) const; + GetEngineNamepaceOutcome getEngineNamepace(const Model::GetEngineNamepaceRequest &request)const; + void getEngineNamepaceAsync(const Model::GetEngineNamepaceRequest& request, const GetEngineNamepaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEngineNamepaceOutcomeCallable getEngineNamepaceCallable(const Model::GetEngineNamepaceRequest& request) const; + 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; + 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; + GetGatewayOptionOutcome getGatewayOption(const Model::GetGatewayOptionRequest &request)const; + void getGatewayOptionAsync(const Model::GetGatewayOptionRequest& request, const GetGatewayOptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGatewayOptionOutcomeCallable getGatewayOptionCallable(const Model::GetGatewayOptionRequest& request) const; + GetGatewayServiceDetailOutcome getGatewayServiceDetail(const Model::GetGatewayServiceDetailRequest &request)const; + void getGatewayServiceDetailAsync(const Model::GetGatewayServiceDetailRequest& request, const GetGatewayServiceDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGatewayServiceDetailOutcomeCallable getGatewayServiceDetailCallable(const Model::GetGatewayServiceDetailRequest& request) const; + GetGovernanceKubernetesClusterOutcome getGovernanceKubernetesCluster(const Model::GetGovernanceKubernetesClusterRequest &request)const; + void getGovernanceKubernetesClusterAsync(const Model::GetGovernanceKubernetesClusterRequest& request, const GetGovernanceKubernetesClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGovernanceKubernetesClusterOutcomeCallable getGovernanceKubernetesClusterCallable(const Model::GetGovernanceKubernetesClusterRequest& request) const; + GetGovernanceKubernetesClusterListOutcome getGovernanceKubernetesClusterList(const Model::GetGovernanceKubernetesClusterListRequest &request)const; + void getGovernanceKubernetesClusterListAsync(const Model::GetGovernanceKubernetesClusterListRequest& request, const GetGovernanceKubernetesClusterListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGovernanceKubernetesClusterListOutcomeCallable getGovernanceKubernetesClusterListCallable(const Model::GetGovernanceKubernetesClusterListRequest& request) const; + GetImageOutcome getImage(const Model::GetImageRequest &request)const; + void getImageAsync(const Model::GetImageRequest& request, const GetImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetImageOutcomeCallable getImageCallable(const Model::GetImageRequest& request) const; + GetImportFileUrlOutcome getImportFileUrl(const Model::GetImportFileUrlRequest &request)const; + void getImportFileUrlAsync(const Model::GetImportFileUrlRequest& request, const GetImportFileUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetImportFileUrlOutcomeCallable getImportFileUrlCallable(const Model::GetImportFileUrlRequest& request) const; + 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; + 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; + GetMseSourceOutcome getMseSource(const Model::GetMseSourceRequest &request)const; + void getMseSourceAsync(const Model::GetMseSourceRequest& request, const GetMseSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMseSourceOutcomeCallable getMseSourceCallable(const Model::GetMseSourceRequest& request) const; + GetNacosConfigOutcome getNacosConfig(const Model::GetNacosConfigRequest &request)const; + void getNacosConfigAsync(const Model::GetNacosConfigRequest& request, const GetNacosConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNacosConfigOutcomeCallable getNacosConfigCallable(const Model::GetNacosConfigRequest& request) const; + GetNacosHistoryConfigOutcome getNacosHistoryConfig(const Model::GetNacosHistoryConfigRequest &request)const; + void getNacosHistoryConfigAsync(const Model::GetNacosHistoryConfigRequest& request, const GetNacosHistoryConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNacosHistoryConfigOutcomeCallable getNacosHistoryConfigCallable(const Model::GetNacosHistoryConfigRequest& request) const; + GetOverviewOutcome getOverview(const Model::GetOverviewRequest &request)const; + void getOverviewAsync(const Model::GetOverviewRequest& request, const GetOverviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOverviewOutcomeCallable getOverviewCallable(const Model::GetOverviewRequest& request) const; + ImportNacosConfigOutcome importNacosConfig(const Model::ImportNacosConfigRequest &request)const; + void importNacosConfigAsync(const Model::ImportNacosConfigRequest& request, const ImportNacosConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportNacosConfigOutcomeCallable importNacosConfigCallable(const Model::ImportNacosConfigRequest& request) const; + ImportServicesOutcome importServices(const Model::ImportServicesRequest &request)const; + void importServicesAsync(const Model::ImportServicesRequest& request, const ImportServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportServicesOutcomeCallable importServicesCallable(const Model::ImportServicesRequest& request) const; + ListAlarmContactGroupsOutcome listAlarmContactGroups(const Model::ListAlarmContactGroupsRequest &request)const; + void listAlarmContactGroupsAsync(const Model::ListAlarmContactGroupsRequest& request, const ListAlarmContactGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAlarmContactGroupsOutcomeCallable listAlarmContactGroupsCallable(const Model::ListAlarmContactGroupsRequest& request) const; + ListAlarmHistoriesOutcome listAlarmHistories(const Model::ListAlarmHistoriesRequest &request)const; + void listAlarmHistoriesAsync(const Model::ListAlarmHistoriesRequest& request, const ListAlarmHistoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAlarmHistoriesOutcomeCallable listAlarmHistoriesCallable(const Model::ListAlarmHistoriesRequest& request) const; + ListAlarmItemsOutcome listAlarmItems(const Model::ListAlarmItemsRequest &request)const; + void listAlarmItemsAsync(const Model::ListAlarmItemsRequest& request, const ListAlarmItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAlarmItemsOutcomeCallable listAlarmItemsCallable(const Model::ListAlarmItemsRequest& request) const; + ListAlarmRulesOutcome listAlarmRules(const Model::ListAlarmRulesRequest &request)const; + void listAlarmRulesAsync(const Model::ListAlarmRulesRequest& request, const ListAlarmRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAlarmRulesOutcomeCallable listAlarmRulesCallable(const Model::ListAlarmRulesRequest& request) const; + ListAnsInstancesOutcome listAnsInstances(const Model::ListAnsInstancesRequest &request)const; + void listAnsInstancesAsync(const Model::ListAnsInstancesRequest& request, const ListAnsInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAnsInstancesOutcomeCallable listAnsInstancesCallable(const Model::ListAnsInstancesRequest& request) const; + ListAnsServiceClustersOutcome listAnsServiceClusters(const Model::ListAnsServiceClustersRequest &request)const; + void listAnsServiceClustersAsync(const Model::ListAnsServiceClustersRequest& request, const ListAnsServiceClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAnsServiceClustersOutcomeCallable listAnsServiceClustersCallable(const Model::ListAnsServiceClustersRequest& request) const; + ListAnsServicesOutcome listAnsServices(const Model::ListAnsServicesRequest &request)const; + void listAnsServicesAsync(const Model::ListAnsServicesRequest& request, const ListAnsServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAnsServicesOutcomeCallable listAnsServicesCallable(const Model::ListAnsServicesRequest& 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; + ListClusterTypesOutcome listClusterTypes(const Model::ListClusterTypesRequest &request)const; + void listClusterTypesAsync(const Model::ListClusterTypesRequest& request, const ListClusterTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterTypesOutcomeCallable listClusterTypesCallable(const Model::ListClusterTypesRequest& request) const; + ListClusterVersionsOutcome listClusterVersions(const Model::ListClusterVersionsRequest &request)const; + void listClusterVersionsAsync(const Model::ListClusterVersionsRequest& request, const ListClusterVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterVersionsOutcomeCallable listClusterVersionsCallable(const Model::ListClusterVersionsRequest& request) const; + ListClustersOutcome listClusters(const Model::ListClustersRequest &request)const; + void listClustersAsync(const Model::ListClustersRequest& request, const ListClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClustersOutcomeCallable listClustersCallable(const Model::ListClustersRequest& request) const; + ListEngineNamespacesOutcome listEngineNamespaces(const Model::ListEngineNamespacesRequest &request)const; + void listEngineNamespacesAsync(const Model::ListEngineNamespacesRequest& request, const ListEngineNamespacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEngineNamespacesOutcomeCallable listEngineNamespacesCallable(const Model::ListEngineNamespacesRequest& request) const; + ListEurekaInstancesOutcome listEurekaInstances(const Model::ListEurekaInstancesRequest &request)const; + void listEurekaInstancesAsync(const Model::ListEurekaInstancesRequest& request, const ListEurekaInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEurekaInstancesOutcomeCallable listEurekaInstancesCallable(const Model::ListEurekaInstancesRequest& request) const; + 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; + 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; + 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; + 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; + ListGatewaySlbOutcome listGatewaySlb(const Model::ListGatewaySlbRequest &request)const; + void listGatewaySlbAsync(const Model::ListGatewaySlbRequest& request, const ListGatewaySlbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListGatewaySlbOutcomeCallable listGatewaySlbCallable(const Model::ListGatewaySlbRequest& request) const; + ListListenersByConfigOutcome listListenersByConfig(const Model::ListListenersByConfigRequest &request)const; + void listListenersByConfigAsync(const Model::ListListenersByConfigRequest& request, const ListListenersByConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListListenersByConfigOutcomeCallable listListenersByConfigCallable(const Model::ListListenersByConfigRequest& request) const; + ListListenersByIpOutcome listListenersByIp(const Model::ListListenersByIpRequest &request)const; + void listListenersByIpAsync(const Model::ListListenersByIpRequest& request, const ListListenersByIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListListenersByIpOutcomeCallable listListenersByIpCallable(const Model::ListListenersByIpRequest& request) const; + ListNacosConfigsOutcome listNacosConfigs(const Model::ListNacosConfigsRequest &request)const; + void listNacosConfigsAsync(const Model::ListNacosConfigsRequest& request, const ListNacosConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNacosConfigsOutcomeCallable listNacosConfigsCallable(const Model::ListNacosConfigsRequest& request) const; + ListNacosHistoryConfigsOutcome listNacosHistoryConfigs(const Model::ListNacosHistoryConfigsRequest &request)const; + void listNacosHistoryConfigsAsync(const Model::ListNacosHistoryConfigsRequest& request, const ListNacosHistoryConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNacosHistoryConfigsOutcomeCallable listNacosHistoryConfigsCallable(const Model::ListNacosHistoryConfigsRequest& request) const; + ListSSLCertOutcome listSSLCert(const Model::ListSSLCertRequest &request)const; + void listSSLCertAsync(const Model::ListSSLCertRequest& request, const ListSSLCertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSSLCertOutcomeCallable listSSLCertCallable(const Model::ListSSLCertRequest& request) const; + ListServiceSourceOutcome listServiceSource(const Model::ListServiceSourceRequest &request)const; + void listServiceSourceAsync(const Model::ListServiceSourceRequest& request, const ListServiceSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServiceSourceOutcomeCallable listServiceSourceCallable(const Model::ListServiceSourceRequest& request) const; + ListZnodeChildrenOutcome listZnodeChildren(const Model::ListZnodeChildrenRequest &request)const; + void listZnodeChildrenAsync(const Model::ListZnodeChildrenRequest& request, const ListZnodeChildrenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListZnodeChildrenOutcomeCallable listZnodeChildrenCallable(const Model::ListZnodeChildrenRequest& request) const; + ModifyGovernanceKubernetesClusterOutcome modifyGovernanceKubernetesCluster(const Model::ModifyGovernanceKubernetesClusterRequest &request)const; + void modifyGovernanceKubernetesClusterAsync(const Model::ModifyGovernanceKubernetesClusterRequest& request, const ModifyGovernanceKubernetesClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGovernanceKubernetesClusterOutcomeCallable modifyGovernanceKubernetesClusterCallable(const Model::ModifyGovernanceKubernetesClusterRequest& request) const; + PullServicesOutcome pullServices(const Model::PullServicesRequest &request)const; + void pullServicesAsync(const Model::PullServicesRequest& request, const PullServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PullServicesOutcomeCallable pullServicesCallable(const Model::PullServicesRequest& request) const; + QueryBusinessLocationsOutcome queryBusinessLocations(const Model::QueryBusinessLocationsRequest &request)const; + void queryBusinessLocationsAsync(const Model::QueryBusinessLocationsRequest& request, const QueryBusinessLocationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryBusinessLocationsOutcomeCallable queryBusinessLocationsCallable(const Model::QueryBusinessLocationsRequest& request) const; + QueryClusterDetailOutcome queryClusterDetail(const Model::QueryClusterDetailRequest &request)const; + void queryClusterDetailAsync(const Model::QueryClusterDetailRequest& request, const QueryClusterDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryClusterDetailOutcomeCallable queryClusterDetailCallable(const Model::QueryClusterDetailRequest& request) const; + QueryClusterDiskSpecificationOutcome queryClusterDiskSpecification(const Model::QueryClusterDiskSpecificationRequest &request)const; + void queryClusterDiskSpecificationAsync(const Model::QueryClusterDiskSpecificationRequest& request, const QueryClusterDiskSpecificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryClusterDiskSpecificationOutcomeCallable queryClusterDiskSpecificationCallable(const Model::QueryClusterDiskSpecificationRequest& request) const; + QueryClusterSpecificationOutcome queryClusterSpecification(const Model::QueryClusterSpecificationRequest &request)const; + void queryClusterSpecificationAsync(const Model::QueryClusterSpecificationRequest& request, const QueryClusterSpecificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryClusterSpecificationOutcomeCallable queryClusterSpecificationCallable(const Model::QueryClusterSpecificationRequest& request) const; + QueryConfigOutcome queryConfig(const Model::QueryConfigRequest &request)const; + void queryConfigAsync(const Model::QueryConfigRequest& request, const QueryConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryConfigOutcomeCallable queryConfigCallable(const Model::QueryConfigRequest& request) const; + QueryGatewayRegionOutcome queryGatewayRegion(const Model::QueryGatewayRegionRequest &request)const; + void queryGatewayRegionAsync(const Model::QueryGatewayRegionRequest& request, const QueryGatewayRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryGatewayRegionOutcomeCallable queryGatewayRegionCallable(const Model::QueryGatewayRegionRequest& request) const; + QueryGatewayTypeOutcome queryGatewayType(const Model::QueryGatewayTypeRequest &request)const; + void queryGatewayTypeAsync(const Model::QueryGatewayTypeRequest& request, const QueryGatewayTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryGatewayTypeOutcomeCallable queryGatewayTypeCallable(const Model::QueryGatewayTypeRequest& request) const; + QueryGovernanceKubernetesClusterOutcome queryGovernanceKubernetesCluster(const Model::QueryGovernanceKubernetesClusterRequest &request)const; + void queryGovernanceKubernetesClusterAsync(const Model::QueryGovernanceKubernetesClusterRequest& request, const QueryGovernanceKubernetesClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryGovernanceKubernetesClusterOutcomeCallable queryGovernanceKubernetesClusterCallable(const Model::QueryGovernanceKubernetesClusterRequest& request) const; + 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; + 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; + QueryZnodeDetailOutcome queryZnodeDetail(const Model::QueryZnodeDetailRequest &request)const; + void queryZnodeDetailAsync(const Model::QueryZnodeDetailRequest& request, const QueryZnodeDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryZnodeDetailOutcomeCallable queryZnodeDetailCallable(const Model::QueryZnodeDetailRequest& request) const; + RestartClusterOutcome restartCluster(const Model::RestartClusterRequest &request)const; + void restartClusterAsync(const Model::RestartClusterRequest& request, const RestartClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartClusterOutcomeCallable restartClusterCallable(const Model::RestartClusterRequest& request) const; + RetryClusterOutcome retryCluster(const Model::RetryClusterRequest &request)const; + void retryClusterAsync(const Model::RetryClusterRequest& request, const RetryClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RetryClusterOutcomeCallable retryClusterCallable(const Model::RetryClusterRequest& request) const; + ScalingClusterOutcome scalingCluster(const Model::ScalingClusterRequest &request)const; + void scalingClusterAsync(const Model::ScalingClusterRequest& request, const ScalingClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ScalingClusterOutcomeCallable scalingClusterCallable(const Model::ScalingClusterRequest& request) const; + SelectGatewaySlbOutcome selectGatewaySlb(const Model::SelectGatewaySlbRequest &request)const; + void selectGatewaySlbAsync(const Model::SelectGatewaySlbRequest& request, const SelectGatewaySlbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SelectGatewaySlbOutcomeCallable selectGatewaySlbCallable(const Model::SelectGatewaySlbRequest& request) const; + 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; + 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; + 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; + UpdateConfigOutcome updateConfig(const Model::UpdateConfigRequest &request)const; + void updateConfigAsync(const Model::UpdateConfigRequest& request, const UpdateConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateConfigOutcomeCallable updateConfigCallable(const Model::UpdateConfigRequest& request) const; + 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; + 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; + UpdateGatewayNameOutcome updateGatewayName(const Model::UpdateGatewayNameRequest &request)const; + void updateGatewayNameAsync(const Model::UpdateGatewayNameRequest& request, const UpdateGatewayNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayNameOutcomeCallable updateGatewayNameCallable(const Model::UpdateGatewayNameRequest& request) const; + UpdateGatewayOptionOutcome updateGatewayOption(const Model::UpdateGatewayOptionRequest &request)const; + void updateGatewayOptionAsync(const Model::UpdateGatewayOptionRequest& request, const UpdateGatewayOptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayOptionOutcomeCallable updateGatewayOptionCallable(const Model::UpdateGatewayOptionRequest& request) const; + UpdateGatewayRouteHTTPRewriteOutcome updateGatewayRouteHTTPRewrite(const Model::UpdateGatewayRouteHTTPRewriteRequest &request)const; + void updateGatewayRouteHTTPRewriteAsync(const Model::UpdateGatewayRouteHTTPRewriteRequest& request, const UpdateGatewayRouteHTTPRewriteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayRouteHTTPRewriteOutcomeCallable updateGatewayRouteHTTPRewriteCallable(const Model::UpdateGatewayRouteHTTPRewriteRequest& request) const; + UpdateGatewayServiceVersionOutcome updateGatewayServiceVersion(const Model::UpdateGatewayServiceVersionRequest &request)const; + void updateGatewayServiceVersionAsync(const Model::UpdateGatewayServiceVersionRequest& request, const UpdateGatewayServiceVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayServiceVersionOutcomeCallable updateGatewayServiceVersionCallable(const Model::UpdateGatewayServiceVersionRequest& request) const; + UpdateImageOutcome updateImage(const Model::UpdateImageRequest &request)const; + void updateImageAsync(const Model::UpdateImageRequest& request, const UpdateImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateImageOutcomeCallable updateImageCallable(const Model::UpdateImageRequest& request) const; + UpdateNacosClusterOutcome updateNacosCluster(const Model::UpdateNacosClusterRequest &request)const; + void updateNacosClusterAsync(const Model::UpdateNacosClusterRequest& request, const UpdateNacosClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateNacosClusterOutcomeCallable updateNacosClusterCallable(const Model::UpdateNacosClusterRequest& request) const; + UpdateNacosConfigOutcome updateNacosConfig(const Model::UpdateNacosConfigRequest &request)const; + void updateNacosConfigAsync(const Model::UpdateNacosConfigRequest& request, const UpdateNacosConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateNacosConfigOutcomeCallable updateNacosConfigCallable(const Model::UpdateNacosConfigRequest& request) const; + UpdateNacosInstanceOutcome updateNacosInstance(const Model::UpdateNacosInstanceRequest &request)const; + void updateNacosInstanceAsync(const Model::UpdateNacosInstanceRequest& request, const UpdateNacosInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateNacosInstanceOutcomeCallable updateNacosInstanceCallable(const Model::UpdateNacosInstanceRequest& request) const; + UpdateNacosServiceOutcome updateNacosService(const Model::UpdateNacosServiceRequest &request)const; + void updateNacosServiceAsync(const Model::UpdateNacosServiceRequest& request, const UpdateNacosServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateNacosServiceOutcomeCallable updateNacosServiceCallable(const Model::UpdateNacosServiceRequest& request) const; + UpdateSSLCertOutcome updateSSLCert(const Model::UpdateSSLCertRequest &request)const; + void updateSSLCertAsync(const Model::UpdateSSLCertRequest& request, const UpdateSSLCertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSSLCertOutcomeCallable updateSSLCertCallable(const Model::UpdateSSLCertRequest& request) const; + UpdateZnodeOutcome updateZnode(const Model::UpdateZnodeRequest &request)const; + void updateZnodeAsync(const Model::UpdateZnodeRequest& request, const UpdateZnodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateZnodeOutcomeCallable updateZnodeCallable(const Model::UpdateZnodeRequest& request) const; + UpgradeClusterOutcome upgradeCluster(const Model::UpgradeClusterRequest &request)const; + void upgradeClusterAsync(const Model::UpgradeClusterRequest& request, const UpgradeClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeClusterOutcomeCallable upgradeClusterCallable(const Model::UpgradeClusterRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_MSE_MSECLIENT_H_ diff --git a/mse/include/alibabacloud/mse/MseExport.h b/mse/include/alibabacloud/mse/MseExport.h new file mode 100644 index 000000000..b285aa0c0 --- /dev/null +++ b/mse/include/alibabacloud/mse/MseExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_MSEEXPORT_H_ +#define ALIBABACLOUD_MSE_MSEEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_MSE_LIBRARY) +# define ALIBABACLOUD_MSE_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_MSE_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_MSE_EXPORT +#endif + +#endif // !ALIBABACLOUD_MSE_MSEEXPORT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/AddAuthResourceRequest.h b/mse/include/alibabacloud/mse/model/AddAuthResourceRequest.h new file mode 100644 index 000000000..9195c70af --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddAuthResourceRequest.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_ADDAUTHRESOURCEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDAUTHRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT AddAuthResourceRequest : public RpcServiceRequest { +public: + AddAuthResourceRequest(); + ~AddAuthResourceRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getAuthId() const; + void setAuthId(long authId); + long getDomainId() const; + void setDomainId(long domainId); + std::string getPath() const; + void setPath(const std::string &path); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + long authId_; + long domainId_; + std::string path_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_ADDAUTHRESOURCEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddAuthResourceResult.h b/mse/include/alibabacloud/mse/model/AddAuthResourceResult.h new file mode 100644 index 000000000..4c5dca467 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddAuthResourceResult.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_ADDAUTHRESOURCERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDAUTHRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddAuthResourceResult : public ServiceResult + { + public: + + + AddAuthResourceResult(); + explicit AddAuthResourceResult(const std::string &payload); + ~AddAuthResourceResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_ADDAUTHRESOURCERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/AddBlackWhiteListRequest.h b/mse/include/alibabacloud/mse/model/AddBlackWhiteListRequest.h new file mode 100644 index 000000000..6410c2176 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddBlackWhiteListRequest.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_ADDBLACKWHITELISTREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDBLACKWHITELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT AddBlackWhiteListRequest : public RpcServiceRequest { +public: + AddBlackWhiteListRequest(); + ~AddBlackWhiteListRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getType() const; + void setType(const std::string &type); + std::string getContent() const; + void setContent(const std::string &content); + bool getIsWhite() const; + void setIsWhite(bool isWhite); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string gatewayUniqueId_; + std::string type_; + std::string content_; + bool isWhite_; + std::string resourceType_; + std::string acceptLanguage_; + std::string status_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_ADDBLACKWHITELISTREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddBlackWhiteListResult.h b/mse/include/alibabacloud/mse/model/AddBlackWhiteListResult.h new file mode 100644 index 000000000..e388133c7 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddBlackWhiteListResult.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_ADDBLACKWHITELISTRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDBLACKWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddBlackWhiteListResult : public ServiceResult + { + public: + + + AddBlackWhiteListResult(); + explicit AddBlackWhiteListResult(const std::string &payload); + ~AddBlackWhiteListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_ADDBLACKWHITELISTRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/AddGatewayDomainRequest.h b/mse/include/alibabacloud/mse/model/AddGatewayDomainRequest.h new file mode 100644 index 000000000..0f9f3108e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddGatewayDomainRequest.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_ADDGATEWAYDOMAINREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDGATEWAYDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT AddGatewayDomainRequest : public RpcServiceRequest { +public: + AddGatewayDomainRequest(); + ~AddGatewayDomainRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + bool getMustHttps() const; + void setMustHttps(bool mustHttps); + std::string getCertIdentifier() const; + void setCertIdentifier(const std::string &certIdentifier); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string protocol_; + bool mustHttps_; + std::string certIdentifier_; + std::string name_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_ADDGATEWAYDOMAINREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddGatewayDomainResult.h b/mse/include/alibabacloud/mse/model/AddGatewayDomainResult.h new file mode 100644 index 000000000..1eea47cba --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddGatewayDomainResult.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_ADDGATEWAYDOMAINRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDGATEWAYDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddGatewayDomainResult : public ServiceResult + { + public: + + + AddGatewayDomainResult(); + explicit AddGatewayDomainResult(const std::string &payload); + ~AddGatewayDomainResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_ADDGATEWAYDOMAINRESULT_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 new file mode 100644 index 000000000..253ea4e2e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddGatewayRequest.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_ADDGATEWAYREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT AddGatewayRequest : public RpcServiceRequest { +public: + AddGatewayRequest(); + ~AddGatewayRequest(); + std::string getInternetSlbSpec() const; + void setInternetSlbSpec(const std::string &internetSlbSpec); + int getReplica() const; + void setReplica(int replica); + std::string getVSwitchId2() const; + void setVSwitchId2(const std::string &vSwitchId2); + std::string getSpec() const; + void setSpec(const std::string &spec); + bool getEnterpriseSecurityGroup() const; + void setEnterpriseSecurityGroup(bool enterpriseSecurityGroup); + 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); + +private: + std::string internetSlbSpec_; + int replica_; + std::string vSwitchId2_; + std::string spec_; + bool enterpriseSecurityGroup_; + std::string vpc_; + std::string vSwitchId_; + std::string slbSpec_; + std::string name_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_ADDGATEWAYREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddGatewayResult.h b/mse/include/alibabacloud/mse/model/AddGatewayResult.h new file mode 100644 index 000000000..ebe789d51 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddGatewayResult.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_ADDGATEWAYRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddGatewayResult : public ServiceResult + { + public: + struct Data + { + std::string gatewayUniqueId; + }; + + + AddGatewayResult(); + explicit AddGatewayResult(const std::string &payload); + ~AddGatewayResult(); + 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_ADDGATEWAYRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/AddGatewayServiceVersionRequest.h b/mse/include/alibabacloud/mse/model/AddGatewayServiceVersionRequest.h new file mode 100644 index 000000000..b33a15535 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddGatewayServiceVersionRequest.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_ADDGATEWAYSERVICEVERSIONREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDGATEWAYSERVICEVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT AddGatewayServiceVersionRequest : public RpcServiceRequest { +public: + AddGatewayServiceVersionRequest(); + ~AddGatewayServiceVersionRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getServiceVersion() const; + void setServiceVersion(const std::string &serviceVersion); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + long getServiceId() const; + void setServiceId(long serviceId); + +private: + std::string gatewayUniqueId_; + std::string serviceVersion_; + std::string acceptLanguage_; + long serviceId_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_ADDGATEWAYSERVICEVERSIONREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddGatewayServiceVersionResult.h b/mse/include/alibabacloud/mse/model/AddGatewayServiceVersionResult.h new file mode 100644 index 000000000..e66af2af1 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddGatewayServiceVersionResult.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_ADDGATEWAYSERVICEVERSIONRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDGATEWAYSERVICEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddGatewayServiceVersionResult : public ServiceResult + { + public: + + + AddGatewayServiceVersionResult(); + explicit AddGatewayServiceVersionResult(const std::string &payload); + ~AddGatewayServiceVersionResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_ADDGATEWAYSERVICEVERSIONRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/AddGatewaySlbRequest.h b/mse/include/alibabacloud/mse/model/AddGatewaySlbRequest.h new file mode 100644 index 000000000..6f788a706 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddGatewaySlbRequest.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_ADDGATEWAYSLBREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDGATEWAYSLBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT AddGatewaySlbRequest : public RpcServiceRequest { +public: + AddGatewaySlbRequest(); + ~AddGatewaySlbRequest(); + std::string getSlbId() const; + void setSlbId(const std::string &slbId); + 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 slbId_; + std::string gatewayUniqueId_; + std::string type_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_ADDGATEWAYSLBREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddGatewaySlbResult.h b/mse/include/alibabacloud/mse/model/AddGatewaySlbResult.h new file mode 100644 index 000000000..e9b838541 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddGatewaySlbResult.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_ADDGATEWAYSLBRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDGATEWAYSLBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddGatewaySlbResult : public ServiceResult + { + public: + + + AddGatewaySlbResult(); + explicit AddGatewaySlbResult(const std::string &payload); + ~AddGatewaySlbResult(); + 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_ADDGATEWAYSLBRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/AddMockRuleRequest.h b/mse/include/alibabacloud/mse/model/AddMockRuleRequest.h new file mode 100644 index 000000000..df270a56b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddMockRuleRequest.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_ADDMOCKRULEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDMOCKRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT AddMockRuleRequest : public RpcServiceRequest { +public: + AddMockRuleRequest(); + ~AddMockRuleRequest(); + 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 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 extraJson_; + std::string providerAppId_; + std::string source_; + bool enable_; + std::string scMockItems_; + std::string providerAppName_; + std::string consumerAppIds_; + std::string dubboMockItems_; + std::string name_; + std::string acceptLanguage_; + long mockType_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_ADDMOCKRULEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddMockRuleResult.h b/mse/include/alibabacloud/mse/model/AddMockRuleResult.h new file mode 100644 index 000000000..f9d7d323a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddMockRuleResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ADDMOCKRULERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDMOCKRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddMockRuleResult : public ServiceResult + { + public: + struct Data + { + std::string accountId; + std::string scMockItemJson; + std::string consumerAppId; + std::string extraJson; + long mockType; + std::string source; + std::string name; + std::string consumerAppName; + std::string providerAppId; + std::string providerAppName; + std::string region; + bool enable; + std::string namespaceId; + long id; + }; + + + AddMockRuleResult(); + explicit AddMockRuleResult(const std::string &payload); + ~AddMockRuleResult(); + 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_ADDMOCKRULERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/AddSSLCertRequest.h b/mse/include/alibabacloud/mse/model/AddSSLCertRequest.h new file mode 100644 index 000000000..e32b7c298 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddSSLCertRequest.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_ADDSSLCERTREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDSSLCERTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT AddSSLCertRequest : public RpcServiceRequest { +public: + AddSSLCertRequest(); + ~AddSSLCertRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getDomainId() const; + void setDomainId(long domainId); + std::string getCertIdentifier() const; + void setCertIdentifier(const std::string &certIdentifier); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + long domainId_; + std::string certIdentifier_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_ADDSSLCERTREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddSSLCertResult.h b/mse/include/alibabacloud/mse/model/AddSSLCertResult.h new file mode 100644 index 000000000..0e1adb6ac --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddSSLCertResult.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_ADDSSLCERTRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDSSLCERTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddSSLCertResult : public ServiceResult + { + public: + + + AddSSLCertResult(); + explicit AddSSLCertResult(const std::string &payload); + ~AddSSLCertResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + bool getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + bool data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_ADDSSLCERTRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/AddServiceSourceRequest.h b/mse/include/alibabacloud/mse/model/AddServiceSourceRequest.h new file mode 100644 index 000000000..9bbafda2e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddServiceSourceRequest.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_ADDSERVICESOURCEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDSERVICESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT AddServiceSourceRequest : public RpcServiceRequest { +public: + AddServiceSourceRequest(); + ~AddServiceSourceRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getSource() const; + void setSource(const std::string &source); + std::string getType() const; + void setType(const std::string &type); + std::string getAddress() const; + void setAddress(const std::string &address); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string source_; + std::string type_; + std::string address_; + std::string name_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_ADDSERVICESOURCEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/AddServiceSourceResult.h b/mse/include/alibabacloud/mse/model/AddServiceSourceResult.h new file mode 100644 index 000000000..bd55d543b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/AddServiceSourceResult.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_ADDSERVICESOURCERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_ADDSERVICESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT AddServiceSourceResult : public ServiceResult + { + public: + + + AddServiceSourceResult(); + explicit AddServiceSourceResult(const std::string &payload); + ~AddServiceSourceResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_ADDSERVICESOURCERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/CloneNacosConfigRequest.h b/mse/include/alibabacloud/mse/model/CloneNacosConfigRequest.h new file mode 100644 index 000000000..083b9ae27 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CloneNacosConfigRequest.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_CLONENACOSCONFIGREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_CLONENACOSCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT CloneNacosConfigRequest : public RpcServiceRequest { +public: + CloneNacosConfigRequest(); + ~CloneNacosConfigRequest(); + std::string getTargetNamespaceId() const; + void setTargetNamespaceId(const std::string &targetNamespaceId); + 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 targetNamespaceId_; + std::string instanceId_; + std::string acceptLanguage_; + std::string ids_; + std::string originNamespaceId_; + std::string policy_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_CLONENACOSCONFIGREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CloneNacosConfigResult.h b/mse/include/alibabacloud/mse/model/CloneNacosConfigResult.h new file mode 100644 index 000000000..8a34f8594 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CloneNacosConfigResult.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_CLONENACOSCONFIGRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_CLONENACOSCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT CloneNacosConfigResult : public ServiceResult + { + public: + struct Data + { + struct SkipDataItem + { + std::string group; + std::string dataId; + }; + struct FailDataItem + { + std::string group; + std::string dataId; + }; + std::vector failData; + std::vector skipData; + int succCount; + int skipCount; + }; + + + CloneNacosConfigResult(); + explicit CloneNacosConfigResult(const std::string &payload); + ~CloneNacosConfigResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data 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_; + Data data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_CLONENACOSCONFIGRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/CreateAlarmRuleRequest.h b/mse/include/alibabacloud/mse/model/CreateAlarmRuleRequest.h new file mode 100644 index 000000000..64ebb300a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateAlarmRuleRequest.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_CREATEALARMRULEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATEALARMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT CreateAlarmRuleRequest : public RpcServiceRequest { +public: + CreateAlarmRuleRequest(); + ~CreateAlarmRuleRequest(); + int getNValue() const; + void setNValue(int nValue); + std::string getAlarmItem() const; + void setAlarmItem(const std::string &alarmItem); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string get_Operator() const; + void set_Operator(const std::string &_operator); + std::string getAlarmAliasName() const; + void setAlarmAliasName(const std::string &alarmAliasName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getContactGroupIds() const; + void setContactGroupIds(const std::string &contactGroupIds); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getAlertWay() const; + void setAlertWay(const std::string &alertWay); + std::string getAggregates() const; + void setAggregates(const std::string &aggregates); + float getValue() const; + void setValue(float value); + +private: + int nValue_; + std::string alarmItem_; + std::string clusterId_; + std::string _operator_; + std::string alarmAliasName_; + std::string instanceId_; + std::string contactGroupIds_; + std::string acceptLanguage_; + std::string alertWay_; + std::string aggregates_; + float value_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_CREATEALARMRULEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CreateAlarmRuleResult.h b/mse/include/alibabacloud/mse/model/CreateAlarmRuleResult.h new file mode 100644 index 000000000..8d1b10d16 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateAlarmRuleResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_CREATEALARMRULERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATEALARMRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT CreateAlarmRuleResult : public ServiceResult + { + public: + + + CreateAlarmRuleResult(); + explicit CreateAlarmRuleResult(const std::string &payload); + ~CreateAlarmRuleResult(); + std::string getMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_CREATEALARMRULERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/CreateApplicationRequest.h b/mse/include/alibabacloud/mse/model/CreateApplicationRequest.h new file mode 100644 index 000000000..c7c5f624c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateApplicationRequest.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_CREATEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT CreateApplicationRequest : public RpcServiceRequest { +public: + CreateApplicationRequest(); + ~CreateApplicationRequest(); + std::string getLanguage() const; + void setLanguage(const std::string &language); + std::string getSource() const; + void setSource(const std::string &source); + std::string getExtraInfo() const; + void setExtraInfo(const std::string &extraInfo); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string language_; + std::string source_; + std::string extraInfo_; + std::string appName_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_CREATEAPPLICATIONREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CreateApplicationResult.h b/mse/include/alibabacloud/mse/model/CreateApplicationResult.h new file mode 100644 index 000000000..514e60689 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateApplicationResult.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_CREATEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT CreateApplicationResult : public ServiceResult + { + public: + struct Data + { + int status; + std::string appId; + std::string language; + std::string userId; + long createTime; + long updateTime; + std::string extraInfo; + std::string regionId; + std::string source; + std::string appName; + std::string licenseKey; + }; + + + CreateApplicationResult(); + explicit CreateApplicationResult(const std::string &payload); + ~CreateApplicationResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + int getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + int code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_CREATEAPPLICATIONRESULT_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 new file mode 100644 index 000000000..b59537710 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateClusterRequest.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_CREATECLUSTERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT CreateClusterRequest : public RpcServiceRequest { +public: + CreateClusterRequest(); + ~CreateClusterRequest(); + std::string getClusterSpecification() const; + void setClusterSpecification(const std::string &clusterSpecification); + 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 getRequestPars() const; + void setRequestPars(const std::string &requestPars); + std::string getConnectionType() const; + void setConnectionType(const std::string &connectionType); + std::string getClusterVersion() const; + void setClusterVersion(const std::string &clusterVersion); + int getDiskCapacity() const; + 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 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); + +private: + std::string clusterSpecification_; + std::string pubSlbSpecification_; + std::string privateSlbSpecification_; + int instanceCount_; + std::string requestPars_; + std::string connectionType_; + std::string clusterVersion_; + int diskCapacity_; + std::string diskType_; + std::string vSwitchId_; + std::string clusterType_; + std::string pubNetworkFlow_; + std::string vpcId_; + std::string netType_; + std::string mseVersion_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_CREATECLUSTERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CreateClusterResult.h b/mse/include/alibabacloud/mse/model/CreateClusterResult.h new file mode 100644 index 000000000..f78a4a303 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateClusterResult.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_CREATECLUSTERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT CreateClusterResult : public ServiceResult + { + public: + + + CreateClusterResult(); + explicit CreateClusterResult(const std::string &payload); + ~CreateClusterResult(); + std::string getMessage()const; + std::string getInstanceId()const; + std::string getErrorCode()const; + std::string getOrderId()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string instanceId_; + std::string errorCode_; + std::string orderId_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_CREATECLUSTERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h b/mse/include/alibabacloud/mse/model/CreateEngineNamespaceRequest.h new file mode 100644 index 000000000..fc0c6d7b8 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateEngineNamespaceRequest.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_CREATEENGINENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATEENGINENAMESPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT CreateEngineNamespaceRequest : public RpcServiceRequest { +public: + CreateEngineNamespaceRequest(); + ~CreateEngineNamespaceRequest(); + 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 getDesc() const; + void setDesc(const std::string &desc); + +private: + std::string clusterId_; + std::string instanceId_; + int serviceCount_; + std::string name_; + std::string acceptLanguage_; + std::string desc_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_CREATEENGINENAMESPACEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CreateEngineNamespaceResult.h b/mse/include/alibabacloud/mse/model/CreateEngineNamespaceResult.h new file mode 100644 index 000000000..f0b961133 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateEngineNamespaceResult.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_CREATEENGINENAMESPACERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATEENGINENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT CreateEngineNamespaceResult : public ServiceResult + { + public: + struct Data + { + int type; + int quota; + int configCount; + std::string namespaceShowName; + std::string _namespace; + std::string namespaceDesc; + int serviceCount; + }; + + + CreateEngineNamespaceResult(); + explicit CreateEngineNamespaceResult(const std::string &payload); + ~CreateEngineNamespaceResult(); + std::string getMessage()const; + std::string getClusterId()const; + Data getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string clusterId_; + Data data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_CREATEENGINENAMESPACERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/CreateNacosConfigRequest.h b/mse/include/alibabacloud/mse/model/CreateNacosConfigRequest.h new file mode 100644 index 000000000..fc7a1b74e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateNacosConfigRequest.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_CREATENACOSCONFIGREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATENACOSCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT CreateNacosConfigRequest : public RpcServiceRequest { +public: + CreateNacosConfigRequest(); + ~CreateNacosConfigRequest(); + std::string getType() const; + void setType(const std::string &type); + std::string getContent() const; + void setContent(const std::string &content); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getBetaIps() const; + void setBetaIps(const std::string &betaIps); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDataId() const; + void setDataId(const std::string &dataId); + std::string getAppName() const; + void setAppName(const std::string &appName); + 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); + std::string getDesc() const; + void setDesc(const std::string &desc); + +private: + std::string type_; + std::string content_; + std::string tags_; + std::string betaIps_; + std::string instanceId_; + std::string dataId_; + std::string appName_; + std::string namespaceId_; + std::string acceptLanguage_; + std::string group_; + std::string desc_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_CREATENACOSCONFIGREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CreateNacosConfigResult.h b/mse/include/alibabacloud/mse/model/CreateNacosConfigResult.h new file mode 100644 index 000000000..56af8984e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateNacosConfigResult.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_CREATENACOSCONFIGRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATENACOSCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT CreateNacosConfigResult : public ServiceResult + { + public: + + + CreateNacosConfigResult(); + explicit CreateNacosConfigResult(const std::string &payload); + ~CreateNacosConfigResult(); + std::string getHttpCode()const; + std::string getMessage()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + std::string message_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_CREATENACOSCONFIGRESULT_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 new file mode 100644 index 000000000..22d21ebde --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateNacosInstanceRequest.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_CREATENACOSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATENACOSINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT CreateNacosInstanceRequest : public RpcServiceRequest { +public: + CreateNacosInstanceRequest(); + ~CreateNacosInstanceRequest(); + std::string getMetadata() const; + void setMetadata(const std::string &metadata); + std::string getClusterName() const; + 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; + void setWeight(const std::string &weight); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPort() const; + void setPort(int port); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +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_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_CREATENACOSINSTANCEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CreateNacosInstanceResult.h b/mse/include/alibabacloud/mse/model/CreateNacosInstanceResult.h new file mode 100644 index 000000000..d7b20d08c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateNacosInstanceResult.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_CREATENACOSINSTANCERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATENACOSINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT CreateNacosInstanceResult : public ServiceResult + { + public: + + + CreateNacosInstanceResult(); + explicit CreateNacosInstanceResult(const std::string &payload); + ~CreateNacosInstanceResult(); + 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_CREATENACOSINSTANCERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/CreateNacosServiceRequest.h b/mse/include/alibabacloud/mse/model/CreateNacosServiceRequest.h new file mode 100644 index 000000000..184898665 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateNacosServiceRequest.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_CREATENACOSSERVICEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATENACOSSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT CreateNacosServiceRequest : public RpcServiceRequest { +public: + CreateNacosServiceRequest(); + ~CreateNacosServiceRequest(); + bool getEphemeral() const; + void setEphemeral(bool ephemeral); + 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: + bool ephemeral_; + std::string clusterId_; + std::string groupName_; + std::string instanceId_; + std::string namespaceId_; + std::string acceptLanguage_; + std::string serviceName_; + std::string protectThreshold_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_CREATENACOSSERVICEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CreateNacosServiceResult.h b/mse/include/alibabacloud/mse/model/CreateNacosServiceResult.h new file mode 100644 index 000000000..018a95cdf --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateNacosServiceResult.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_CREATENACOSSERVICERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATENACOSSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT CreateNacosServiceResult : public ServiceResult + { + public: + + + CreateNacosServiceResult(); + explicit CreateNacosServiceResult(const std::string &payload); + ~CreateNacosServiceResult(); + 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_CREATENACOSSERVICERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/CreateZnodeRequest.h b/mse/include/alibabacloud/mse/model/CreateZnodeRequest.h new file mode 100644 index 000000000..fb4410b68 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateZnodeRequest.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_CREATEZNODEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATEZNODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT CreateZnodeRequest : public RpcServiceRequest { +public: + CreateZnodeRequest(); + ~CreateZnodeRequest(); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string data_; + std::string clusterId_; + std::string path_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_CREATEZNODEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/CreateZnodeResult.h b/mse/include/alibabacloud/mse/model/CreateZnodeResult.h new file mode 100644 index 000000000..cb5939897 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/CreateZnodeResult.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_CREATEZNODERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_CREATEZNODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT CreateZnodeResult : public ServiceResult + { + public: + struct Data + { + std::string path; + std::string data; + bool dir; + std::string name; + }; + + + CreateZnodeResult(); + explicit CreateZnodeResult(const std::string &payload); + ~CreateZnodeResult(); + std::string getHttpCode()const; + std::string getMessage()const; + Data getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + std::string message_; + Data data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_CREATEZNODERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteAlarmRuleRequest.h b/mse/include/alibabacloud/mse/model/DeleteAlarmRuleRequest.h new file mode 100644 index 000000000..078a1b3b6 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteAlarmRuleRequest.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_DELETEALARMRULEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEALARMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteAlarmRuleRequest : public RpcServiceRequest { +public: + DeleteAlarmRuleRequest(); + ~DeleteAlarmRuleRequest(); + std::string getAlarmRuleId() const; + void setAlarmRuleId(const std::string &alarmRuleId); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string alarmRuleId_; + std::string requestPars_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEALARMRULEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteAlarmRuleResult.h b/mse/include/alibabacloud/mse/model/DeleteAlarmRuleResult.h new file mode 100644 index 000000000..02f206232 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteAlarmRuleResult.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_DELETEALARMRULERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEALARMRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteAlarmRuleResult : public ServiceResult + { + public: + + + DeleteAlarmRuleResult(); + explicit DeleteAlarmRuleResult(const std::string &payload); + ~DeleteAlarmRuleResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEALARMRULERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteAuthResourceRequest.h b/mse/include/alibabacloud/mse/model/DeleteAuthResourceRequest.h new file mode 100644 index 000000000..cdb9fe7fe --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteAuthResourceRequest.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_DELETEAUTHRESOURCEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEAUTHRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteAuthResourceRequest : public RpcServiceRequest { +public: + DeleteAuthResourceRequest(); + ~DeleteAuthResourceRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + long getId() const; + void setId(long id); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; + long id_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEAUTHRESOURCEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteAuthResourceResult.h b/mse/include/alibabacloud/mse/model/DeleteAuthResourceResult.h new file mode 100644 index 000000000..ba8164c63 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteAuthResourceResult.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_DELETEAUTHRESOURCERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEAUTHRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteAuthResourceResult : public ServiceResult + { + public: + struct Data + { + std::string path; + bool isWhite; + long authId; + std::string gatewayUniqueId; + std::string gmtCreate; + long domainId; + std::string domainName; + std::string gmtModified; + long id; + long gatewayId; + }; + + + DeleteAuthResourceResult(); + explicit DeleteAuthResourceResult(const std::string &payload); + ~DeleteAuthResourceResult(); + 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_DELETEAUTHRESOURCERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteClusterRequest.h b/mse/include/alibabacloud/mse/model/DeleteClusterRequest.h new file mode 100644 index 000000000..e82caf69c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteClusterRequest.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_DELETECLUSTERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteClusterRequest : public RpcServiceRequest { +public: + DeleteClusterRequest(); + ~DeleteClusterRequest(); + 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 clusterId_; + std::string instanceId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETECLUSTERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteClusterResult.h b/mse/include/alibabacloud/mse/model/DeleteClusterResult.h new file mode 100644 index 000000000..db492e1d4 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteClusterResult.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_DELETECLUSTERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteClusterResult : public ServiceResult + { + public: + + + DeleteClusterResult(); + explicit DeleteClusterResult(const std::string &payload); + ~DeleteClusterResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETECLUSTERRESULT_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 new file mode 100644 index 000000000..870ab7c31 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteEngineNamespaceRequest.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_DELETEENGINENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEENGINENAMESPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteEngineNamespaceRequest : public RpcServiceRequest { +public: + DeleteEngineNamespaceRequest(); + ~DeleteEngineNamespaceRequest(); + 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 clusterId_; + std::string instanceId_; + std::string acceptLanguage_; + std::string id_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEENGINENAMESPACEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteEngineNamespaceResult.h b/mse/include/alibabacloud/mse/model/DeleteEngineNamespaceResult.h new file mode 100644 index 000000000..058b80d2c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteEngineNamespaceResult.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_DELETEENGINENAMESPACERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEENGINENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteEngineNamespaceResult : public ServiceResult + { + public: + + + DeleteEngineNamespaceResult(); + explicit DeleteEngineNamespaceResult(const std::string &payload); + ~DeleteEngineNamespaceResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEENGINENAMESPACERESULT_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 new file mode 100644 index 000000000..4d17d3882 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayDomainRequest.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_DELETEGATEWAYDOMAINREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteGatewayDomainRequest : public RpcServiceRequest { +public: + DeleteGatewayDomainRequest(); + ~DeleteGatewayDomainRequest(); + 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); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; + std::string id_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYDOMAINREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewayDomainResult.h b/mse/include/alibabacloud/mse/model/DeleteGatewayDomainResult.h new file mode 100644 index 000000000..995ffb5c1 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayDomainResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYDOMAINRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteGatewayDomainResult : public ServiceResult + { + public: + struct Data + { + std::string gatewayUniqueId; + std::string gmtCreate; + bool mustHttps; + std::string gmtModified; + int certIdentifier; + long id; + long gatewayId; + std::string protocol; + std::string name; + }; + + + DeleteGatewayDomainResult(); + explicit DeleteGatewayDomainResult(const std::string &payload); + ~DeleteGatewayDomainResult(); + 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_DELETEGATEWAYDOMAINRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewayRequest.h b/mse/include/alibabacloud/mse/model/DeleteGatewayRequest.h new file mode 100644 index 000000000..db1414bd0 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayRequest.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_DELETEGATEWAYREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteGatewayRequest : public RpcServiceRequest { +public: + DeleteGatewayRequest(); + ~DeleteGatewayRequest(); + bool getDeleteSlb() const; + void setDeleteSlb(bool deleteSlb); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + bool deleteSlb_; + std::string gatewayUniqueId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewayResult.h b/mse/include/alibabacloud/mse/model/DeleteGatewayResult.h new file mode 100644 index 000000000..6792fd47b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayResult.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_DELETEGATEWAYRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteGatewayResult : public ServiceResult + { + public: + struct Data + { + int status; + std::string vpc; + std::string gmtModified; + std::string securityGroup; + int replica; + std::string name; + std::string gatewayUniqueId; + std::string gmtCreate; + std::string region; + std::string primaryUser; + std::string vswitch; + long id; + std::string spec; + }; + + + DeleteGatewayResult(); + explicit DeleteGatewayResult(const std::string &payload); + ~DeleteGatewayResult(); + 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_DELETEGATEWAYRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewayServiceVersionRequest.h b/mse/include/alibabacloud/mse/model/DeleteGatewayServiceVersionRequest.h new file mode 100644 index 000000000..53f07ba7d --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayServiceVersionRequest.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_DELETEGATEWAYSERVICEVERSIONREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYSERVICEVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteGatewayServiceVersionRequest : public RpcServiceRequest { +public: + DeleteGatewayServiceVersionRequest(); + ~DeleteGatewayServiceVersionRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getServiceVersion() const; + void setServiceVersion(const std::string &serviceVersion); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + long getServiceId() const; + void setServiceId(long serviceId); + +private: + std::string gatewayUniqueId_; + std::string serviceVersion_; + std::string acceptLanguage_; + long serviceId_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYSERVICEVERSIONREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewayServiceVersionResult.h b/mse/include/alibabacloud/mse/model/DeleteGatewayServiceVersionResult.h new file mode 100644 index 000000000..ccbfa49c8 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewayServiceVersionResult.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_DELETEGATEWAYSERVICEVERSIONRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYSERVICEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteGatewayServiceVersionResult : public ServiceResult + { + public: + + + DeleteGatewayServiceVersionResult(); + explicit DeleteGatewayServiceVersionResult(const std::string &payload); + ~DeleteGatewayServiceVersionResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYSERVICEVERSIONRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewaySlbRequest.h b/mse/include/alibabacloud/mse/model/DeleteGatewaySlbRequest.h new file mode 100644 index 000000000..39e6fce75 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewaySlbRequest.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_DELETEGATEWAYSLBREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYSLBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteGatewaySlbRequest : public RpcServiceRequest { +public: + DeleteGatewaySlbRequest(); + ~DeleteGatewaySlbRequest(); + bool getDeleteSlb() const; + void setDeleteSlb(bool deleteSlb); + 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); + +private: + bool deleteSlb_; + std::string gatewayUniqueId_; + std::string acceptLanguage_; + std::string id_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYSLBREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteGatewaySlbResult.h b/mse/include/alibabacloud/mse/model/DeleteGatewaySlbResult.h new file mode 100644 index 000000000..5d313221c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteGatewaySlbResult.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_DELETEGATEWAYSLBRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEGATEWAYSLBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteGatewaySlbResult : public ServiceResult + { + public: + + + DeleteGatewaySlbResult(); + explicit DeleteGatewaySlbResult(const std::string &payload); + ~DeleteGatewaySlbResult(); + 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_DELETEGATEWAYSLBRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteNacosConfigRequest.h b/mse/include/alibabacloud/mse/model/DeleteNacosConfigRequest.h new file mode 100644 index 000000000..e6d7020a9 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteNacosConfigRequest.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_DELETENACOSCONFIGREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETENACOSCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteNacosConfigRequest : public RpcServiceRequest { +public: + DeleteNacosConfigRequest(); + ~DeleteNacosConfigRequest(); + 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); + +private: + std::string instanceId_; + std::string dataId_; + std::string namespaceId_; + std::string acceptLanguage_; + bool beta_; + std::string group_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETENACOSCONFIGREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteNacosConfigResult.h b/mse/include/alibabacloud/mse/model/DeleteNacosConfigResult.h new file mode 100644 index 000000000..3694c3af4 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteNacosConfigResult.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_DELETENACOSCONFIGRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETENACOSCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteNacosConfigResult : public ServiceResult + { + public: + + + DeleteNacosConfigResult(); + explicit DeleteNacosConfigResult(const std::string &payload); + ~DeleteNacosConfigResult(); + std::string getHttpCode()const; + std::string getMessage()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + std::string message_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETENACOSCONFIGRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteNacosConfigsRequest.h b/mse/include/alibabacloud/mse/model/DeleteNacosConfigsRequest.h new file mode 100644 index 000000000..00eebcbff --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteNacosConfigsRequest.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_DELETENACOSCONFIGSREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETENACOSCONFIGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteNacosConfigsRequest : public RpcServiceRequest { +public: + DeleteNacosConfigsRequest(); + ~DeleteNacosConfigsRequest(); + 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 getIds() const; + void setIds(const std::string &ids); + +private: + std::string instanceId_; + std::string namespaceId_; + std::string acceptLanguage_; + std::string ids_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETENACOSCONFIGSREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteNacosConfigsResult.h b/mse/include/alibabacloud/mse/model/DeleteNacosConfigsResult.h new file mode 100644 index 000000000..32f4f8422 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteNacosConfigsResult.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_DELETENACOSCONFIGSRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETENACOSCONFIGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteNacosConfigsResult : public ServiceResult + { + public: + + + DeleteNacosConfigsResult(); + explicit DeleteNacosConfigsResult(const std::string &payload); + ~DeleteNacosConfigsResult(); + std::string getHttpCode()const; + std::string getMessage()const; + std::string getErrorCode()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + std::string message_; + std::string errorCode_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETENACOSCONFIGSRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteNacosServiceRequest.h b/mse/include/alibabacloud/mse/model/DeleteNacosServiceRequest.h new file mode 100644 index 000000000..e7ef27bbf --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteNacosServiceRequest.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_DELETENACOSSERVICEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETENACOSSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteNacosServiceRequest : public RpcServiceRequest { +public: + DeleteNacosServiceRequest(); + ~DeleteNacosServiceRequest(); + 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 groupName_; + std::string instanceId_; + std::string namespaceId_; + std::string acceptLanguage_; + std::string serviceName_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETENACOSSERVICEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteNacosServiceResult.h b/mse/include/alibabacloud/mse/model/DeleteNacosServiceResult.h new file mode 100644 index 000000000..69d5a9812 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteNacosServiceResult.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_DELETENACOSSERVICERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETENACOSSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteNacosServiceResult : public ServiceResult + { + public: + + + DeleteNacosServiceResult(); + explicit DeleteNacosServiceResult(const std::string &payload); + ~DeleteNacosServiceResult(); + 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_DELETENACOSSERVICERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteServiceSourceRequest.h b/mse/include/alibabacloud/mse/model/DeleteServiceSourceRequest.h new file mode 100644 index 000000000..6a8551596 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteServiceSourceRequest.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_DELETESERVICESOURCEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETESERVICESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteServiceSourceRequest : public RpcServiceRequest { +public: + DeleteServiceSourceRequest(); + ~DeleteServiceSourceRequest(); + long getSourceId() const; + void setSourceId(long sourceId); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + long sourceId_; + std::string gatewayUniqueId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETESERVICESOURCEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteServiceSourceResult.h b/mse/include/alibabacloud/mse/model/DeleteServiceSourceResult.h new file mode 100644 index 000000000..f9e826a29 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteServiceSourceResult.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_DELETESERVICESOURCERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETESERVICESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteServiceSourceResult : public ServiceResult + { + public: + + + DeleteServiceSourceResult(); + explicit DeleteServiceSourceResult(const std::string &payload); + ~DeleteServiceSourceResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETESERVICESOURCERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/DeleteZnodeRequest.h b/mse/include/alibabacloud/mse/model/DeleteZnodeRequest.h new file mode 100644 index 000000000..56b0cf767 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteZnodeRequest.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_DELETEZNODEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEZNODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT DeleteZnodeRequest : public RpcServiceRequest { +public: + DeleteZnodeRequest(); + ~DeleteZnodeRequest(); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterId_; + std::string path_; + std::string requestPars_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEZNODEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/DeleteZnodeResult.h b/mse/include/alibabacloud/mse/model/DeleteZnodeResult.h new file mode 100644 index 000000000..2a5748546 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/DeleteZnodeResult.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_DELETEZNODERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_DELETEZNODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT DeleteZnodeResult : public ServiceResult + { + public: + struct Data + { + std::string path; + std::string data; + bool dir; + std::string name; + }; + + + DeleteZnodeResult(); + explicit DeleteZnodeResult(const std::string &payload); + ~DeleteZnodeResult(); + std::string getHttpCode()const; + std::string getMessage()const; + Data getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + std::string message_; + Data data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_DELETEZNODERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ExportNacosConfigRequest.h b/mse/include/alibabacloud/mse/model/ExportNacosConfigRequest.h new file mode 100644 index 000000000..f2088f23a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ExportNacosConfigRequest.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_EXPORTNACOSCONFIGREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_EXPORTNACOSCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ExportNacosConfigRequest : public RpcServiceRequest { +public: + ExportNacosConfigRequest(); + ~ExportNacosConfigRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDataId() const; + void setDataId(const std::string &dataId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getNamespaceId() const; + void setNamespaceId(const std::string &namespaceId); + 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 instanceId_; + std::string dataId_; + std::string appName_; + std::string namespaceId_; + std::string acceptLanguage_; + std::string ids_; + std::string group_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_EXPORTNACOSCONFIGREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ExportNacosConfigResult.h b/mse/include/alibabacloud/mse/model/ExportNacosConfigResult.h new file mode 100644 index 000000000..a377a2634 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ExportNacosConfigResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_EXPORTNACOSCONFIGRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_EXPORTNACOSCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ExportNacosConfigResult : public ServiceResult + { + public: + struct Data + { + std::string url; + }; + + + ExportNacosConfigResult(); + explicit ExportNacosConfigResult(const std::string &payload); + ~ExportNacosConfigResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data 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_; + Data data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_EXPORTNACOSCONFIGRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetBlackWhiteListRequest.h b/mse/include/alibabacloud/mse/model/GetBlackWhiteListRequest.h new file mode 100644 index 000000000..e51a62e68 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetBlackWhiteListRequest.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_GETBLACKWHITELISTREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETBLACKWHITELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetBlackWhiteListRequest : public RpcServiceRequest { +public: + GetBlackWhiteListRequest(); + ~GetBlackWhiteListRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getType() const; + void setType(const std::string &type); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string type_; + std::string resourceType_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETBLACKWHITELISTREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetBlackWhiteListResult.h b/mse/include/alibabacloud/mse/model/GetBlackWhiteListResult.h new file mode 100644 index 000000000..32633f231 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetBlackWhiteListResult.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_GETBLACKWHITELISTRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETBLACKWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetBlackWhiteListResult : public ServiceResult + { + public: + struct Data + { + bool isWhite; + std::string status; + std::string gatewayUniqueId; + std::string type; + std::string gmtCreate; + long resourceId; + std::string content; + std::string gmtModified; + std::string resourceType; + long id; + long gatewayId; + }; + + + GetBlackWhiteListResult(); + explicit GetBlackWhiteListResult(const std::string &payload); + ~GetBlackWhiteListResult(); + 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_GETBLACKWHITELISTRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetEngineNamepaceRequest.h b/mse/include/alibabacloud/mse/model/GetEngineNamepaceRequest.h new file mode 100644 index 000000000..03a83dec8 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetEngineNamepaceRequest.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_GETENGINENAMEPACEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETENGINENAMEPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetEngineNamepaceRequest : public RpcServiceRequest { +public: + GetEngineNamepaceRequest(); + ~GetEngineNamepaceRequest(); + 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 clusterId_; + std::string instanceId_; + std::string acceptLanguage_; + std::string id_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETENGINENAMEPACEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetEngineNamepaceResult.h b/mse/include/alibabacloud/mse/model/GetEngineNamepaceResult.h new file mode 100644 index 000000000..4b5d71c58 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetEngineNamepaceResult.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_GETENGINENAMEPACERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETENGINENAMEPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetEngineNamepaceResult : public ServiceResult + { + public: + + + GetEngineNamepaceResult(); + explicit GetEngineNamepaceResult(const std::string &payload); + ~GetEngineNamepaceResult(); + std::string getHttpCode()const; + std::string getType()const; + std::string getQuota()const; + std::string getMessage()const; + std::string getConfigCount()const; + std::string getNamespaceShowName()const; + std::string get_Namespace()const; + std::string getErrorCode()const; + bool getSuccess()const; + std::string getNamespaceDesc()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + std::string type_; + std::string quota_; + std::string message_; + std::string configCount_; + std::string namespaceShowName_; + std::string _namespace_; + std::string errorCode_; + bool success_; + std::string namespaceDesc_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_GETENGINENAMEPACERESULT_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 new file mode 100644 index 000000000..8b2393efa --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGatewayDomainDetailRequest.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_GETGATEWAYDOMAINDETAILREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGATEWAYDOMAINDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetGatewayDomainDetailRequest : public RpcServiceRequest { +public: + GetGatewayDomainDetailRequest(); + ~GetGatewayDomainDetailRequest(); + 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); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; + std::string id_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETGATEWAYDOMAINDETAILREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetGatewayDomainDetailResult.h b/mse/include/alibabacloud/mse/model/GetGatewayDomainDetailResult.h new file mode 100644 index 000000000..7ad1a034c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGatewayDomainDetailResult.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_GETGATEWAYDOMAINDETAILRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGATEWAYDOMAINDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetGatewayDomainDetailResult : public ServiceResult + { + public: + struct Data + { + long afterDate; + std::string gmtBefore; + std::string issuer; + bool mustHttps; + std::string gmtModified; + long gatewayId; + std::string algorithm; + std::string name; + std::string gatewayUniqueId; + std::string gmtCreate; + std::string sans; + int certIdentifier; + long id; + std::string certName; + std::string protocol; + std::string gmtAfter; + std::string commonName; + long beforeDate; + }; + + + GetGatewayDomainDetailResult(); + explicit GetGatewayDomainDetailResult(const std::string &payload); + ~GetGatewayDomainDetailResult(); + 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_GETGATEWAYDOMAINDETAILRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetGatewayOptionRequest.h b/mse/include/alibabacloud/mse/model/GetGatewayOptionRequest.h new file mode 100644 index 000000000..096c70c75 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGatewayOptionRequest.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_GETGATEWAYOPTIONREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGATEWAYOPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetGatewayOptionRequest : public RpcServiceRequest { +public: + GetGatewayOptionRequest(); + ~GetGatewayOptionRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + long getGatewayId() const; + void setGatewayId(long gatewayId); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; + long gatewayId_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETGATEWAYOPTIONREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetGatewayOptionResult.h b/mse/include/alibabacloud/mse/model/GetGatewayOptionResult.h new file mode 100644 index 000000000..32b05de2d --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGatewayOptionResult.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_GETGATEWAYOPTIONRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGATEWAYOPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetGatewayOptionResult : public ServiceResult + { + public: + struct Data + { + struct TraceDetails + { + long sample; + bool traceEnabled; + }; + struct LogConfigDetails + { + std::string logStoreName; + std::string projectName; + bool logEnabled; + }; + TraceDetails traceDetails; + LogConfigDetails logConfigDetails; + }; + + + GetGatewayOptionResult(); + explicit GetGatewayOptionResult(const std::string &payload); + ~GetGatewayOptionResult(); + 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_GETGATEWAYOPTIONRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetGatewayRequest.h b/mse/include/alibabacloud/mse/model/GetGatewayRequest.h new file mode 100644 index 000000000..f0b940c9c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGatewayRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETGATEWAYREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetGatewayRequest : public RpcServiceRequest { +public: + GetGatewayRequest(); + ~GetGatewayRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETGATEWAYREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetGatewayResult.h b/mse/include/alibabacloud/mse/model/GetGatewayResult.h new file mode 100644 index 000000000..cdeff47e9 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGatewayResult.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_GETGATEWAYRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetGatewayResult : public ServiceResult + { + public: + struct Data + { + struct XtraceDetails + { + int sample; + bool traceOn; + }; + struct LogConfigDetails + { + std::string logStoreName; + std::string projectName; + bool logEnabled; + }; + int status; + std::string instanceId; + XtraceDetails xtraceDetails; + std::string vpc; + std::string gmtModified; + std::string vswitch2; + std::string securityGroup; + int replica; + std::string endDate; + std::string name; + std::string gatewayUniqueId; + std::string gmtCreate; + std::string chargeType; + std::string region; + std::string primaryUser; + std::string vswitch; + long id; + std::string spec; + LogConfigDetails logConfigDetails; + }; + + + GetGatewayResult(); + explicit GetGatewayResult(const std::string &payload); + ~GetGatewayResult(); + 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_GETGATEWAYRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetGatewayServiceDetailRequest.h b/mse/include/alibabacloud/mse/model/GetGatewayServiceDetailRequest.h new file mode 100644 index 000000000..612c0a2c1 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGatewayServiceDetailRequest.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_GETGATEWAYSERVICEDETAILREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGATEWAYSERVICEDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetGatewayServiceDetailRequest : public RpcServiceRequest { +public: + GetGatewayServiceDetailRequest(); + ~GetGatewayServiceDetailRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + long getServiceId() const; + void setServiceId(long serviceId); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; + long serviceId_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETGATEWAYSERVICEDETAILREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetGatewayServiceDetailResult.h b/mse/include/alibabacloud/mse/model/GetGatewayServiceDetailResult.h new file mode 100644 index 000000000..0db3c8b2e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGatewayServiceDetailResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETGATEWAYSERVICEDETAILRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGATEWAYSERVICEDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetGatewayServiceDetailResult : public ServiceResult + { + public: + struct Data + { + struct GatewayTrafficPolicy + { + struct TlsSetting + { + std::string certId; + std::string caCertContent; + std::string tlsMode; + std::string sni; + }; + struct LoadBalancerSettings + { + struct ConsistentHashLBConfig + { + struct HttpCookie + { + std::string path; + std::string tTL; + std::string name; + }; + std::string consistentHashLBType; + std::string parameterName; + HttpCookie httpCookie; + }; + ConsistentHashLBConfig consistentHashLBConfig; + std::string loadbalancerType; + }; + TlsSetting tlsSetting; + LoadBalancerSettings loadBalancerSettings; + }; + struct VersionsItem + { + std::string type; + std::string label; + std::string value; + }; + struct LabelDetailsItem + { + std::vector values; + std::string key; + }; + struct VersionDetailsItem + { + struct ServiceVersion + { + struct LabelsItem + { + std::string value; + std::string key; + }; + std::vector labels; + std::string name; + }; + int endpointNum; + ServiceVersion serviceVersion; + std::string endpointNumPercent; + }; + std::string groupName; + std::vector versionDetails; + std::string sourceType; + long sourceId; + std::string metaInfo; + std::string gmtModified; + std::string _namespace; + long gatewayId; + std::vector ips; + std::string name; + std::string gatewayUniqueId; + std::string gmtCreate; + std::vector versions; + std::string serviceNameInRegistry; + long id; + std::vector labelDetails; + GatewayTrafficPolicy gatewayTrafficPolicy; + }; + + + GetGatewayServiceDetailResult(); + explicit GetGatewayServiceDetailResult(const std::string &payload); + ~GetGatewayServiceDetailResult(); + 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_GETGATEWAYSERVICEDETAILRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterListRequest.h b/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterListRequest.h new file mode 100644 index 000000000..fe836ec2b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterListRequest.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_GETGOVERNANCEKUBERNETESCLUSTERLISTREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGOVERNANCEKUBERNETESCLUSTERLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetGovernanceKubernetesClusterListRequest : public RpcServiceRequest { +public: + GetGovernanceKubernetesClusterListRequest(); + ~GetGovernanceKubernetesClusterListRequest(); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterName_; + std::string clusterId_; + int pageNumber_; + int pageSize_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETGOVERNANCEKUBERNETESCLUSTERLISTREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterListResult.h b/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterListResult.h new file mode 100644 index 000000000..852ed688c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterListResult.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_GETGOVERNANCEKUBERNETESCLUSTERLISTRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGOVERNANCEKUBERNETESCLUSTERLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetGovernanceKubernetesClusterListResult : public ServiceResult + { + public: + struct Data + { + struct ClusterList + { + std::string pilotStartTime; + std::string k8sVersion; + std::string clusterId; + std::string clusterName; + std::string region; + std::string namespaceInfos; + }; + int pageSize; + int pageNumber; + int totalSize; + std::vector result; + }; + + + GetGovernanceKubernetesClusterListResult(); + explicit GetGovernanceKubernetesClusterListResult(const std::string &payload); + ~GetGovernanceKubernetesClusterListResult(); + 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_GETGOVERNANCEKUBERNETESCLUSTERLISTRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterRequest.h b/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterRequest.h new file mode 100644 index 000000000..372020a89 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterRequest.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_GETGOVERNANCEKUBERNETESCLUSTERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGOVERNANCEKUBERNETESCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetGovernanceKubernetesClusterRequest : public RpcServiceRequest { +public: + GetGovernanceKubernetesClusterRequest(); + ~GetGovernanceKubernetesClusterRequest(); + 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 clusterId_; + std::string regionId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETGOVERNANCEKUBERNETESCLUSTERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterResult.h b/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterResult.h new file mode 100644 index 000000000..247a4f86d --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetGovernanceKubernetesClusterResult.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_GETGOVERNANCEKUBERNETESCLUSTERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETGOVERNANCEKUBERNETESCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetGovernanceKubernetesClusterResult : public ServiceResult + { + public: + struct Data + { + struct KubernetesNamespace + { + std::string tags; + std::string name; + }; + std::vector namespaces; + std::string pilotStartTime; + std::string k8sVersion; + std::string clusterId; + std::string updateTime; + std::string clusterName; + std::string region; + std::string namespaceInfos; + }; + + + GetGovernanceKubernetesClusterResult(); + explicit GetGovernanceKubernetesClusterResult(const std::string &payload); + ~GetGovernanceKubernetesClusterResult(); + 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_GETGOVERNANCEKUBERNETESCLUSTERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetImageRequest.h b/mse/include/alibabacloud/mse/model/GetImageRequest.h new file mode 100644 index 000000000..83469237b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetImageRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETIMAGEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetImageRequest : public RpcServiceRequest { +public: + GetImageRequest(); + ~GetImageRequest(); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getVersionCode() const; + void setVersionCode(const std::string &versionCode); + +private: + std::string acceptLanguage_; + std::string versionCode_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETIMAGEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetImageResult.h b/mse/include/alibabacloud/mse/model/GetImageResult.h new file mode 100644 index 000000000..9b722bf01 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetImageResult.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_GETIMAGERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetImageResult : public ServiceResult + { + public: + struct Data + { + std::string maxVersionChangelogUrl; + std::string currentVersionFullShowName; + std::string maxVersionCode; + std::string maxVersionFullShowName; + }; + + + GetImageResult(); + explicit GetImageResult(const std::string &payload); + ~GetImageResult(); + std::string getHttpCode()const; + std::string getMessage()const; + Data getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + std::string message_; + Data data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_GETIMAGERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetImportFileUrlRequest.h b/mse/include/alibabacloud/mse/model/GetImportFileUrlRequest.h new file mode 100644 index 000000000..dfd3e6446 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetImportFileUrlRequest.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_GETIMPORTFILEURLREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETIMPORTFILEURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetImportFileUrlRequest : public RpcServiceRequest { +public: + GetImportFileUrlRequest(); + ~GetImportFileUrlRequest(); + 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 contentType_; + std::string instanceId_; + std::string namespaceId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETIMPORTFILEURLREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetImportFileUrlResult.h b/mse/include/alibabacloud/mse/model/GetImportFileUrlResult.h new file mode 100644 index 000000000..45c6460ed --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetImportFileUrlResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETIMPORTFILEURLRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETIMPORTFILEURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetImportFileUrlResult : public ServiceResult + { + public: + struct Data + { + std::string url; + }; + + + GetImportFileUrlResult(); + explicit GetImportFileUrlResult(const std::string &payload); + ~GetImportFileUrlResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data 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_; + Data data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_GETIMPORTFILEURLRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetKubernetesSourceRequest.h b/mse/include/alibabacloud/mse/model/GetKubernetesSourceRequest.h new file mode 100644 index 000000000..d140446d5 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetKubernetesSourceRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETKUBERNETESSOURCEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETKUBERNETESSOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetKubernetesSourceRequest : public RpcServiceRequest { +public: + GetKubernetesSourceRequest(); + ~GetKubernetesSourceRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETKUBERNETESSOURCEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetKubernetesSourceResult.h b/mse/include/alibabacloud/mse/model/GetKubernetesSourceResult.h new file mode 100644 index 000000000..48d79bd8a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetKubernetesSourceResult.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_GETKUBERNETESSOURCERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETKUBERNETESSOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetKubernetesSourceResult : public ServiceResult + { + public: + struct K8sSources + { + std::string cluster; + std::string name; + }; + + + GetKubernetesSourceResult(); + explicit GetKubernetesSourceResult(const std::string &payload); + ~GetKubernetesSourceResult(); + 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_GETKUBERNETESSOURCERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetMseFeatureSwitchRequest.h b/mse/include/alibabacloud/mse/model/GetMseFeatureSwitchRequest.h new file mode 100644 index 000000000..e9bcfe86a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetMseFeatureSwitchRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_GETMSEFEATURESWITCHREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETMSEFEATURESWITCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetMseFeatureSwitchRequest : public RpcServiceRequest { +public: + GetMseFeatureSwitchRequest(); + ~GetMseFeatureSwitchRequest(); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETMSEFEATURESWITCHREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetMseFeatureSwitchResult.h b/mse/include/alibabacloud/mse/model/GetMseFeatureSwitchResult.h new file mode 100644 index 000000000..58768eee4 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetMseFeatureSwitchResult.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_GETMSEFEATURESWITCHRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETMSEFEATURESWITCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetMseFeatureSwitchResult : public ServiceResult + { + public: + + + GetMseFeatureSwitchResult(); + explicit GetMseFeatureSwitchResult(const std::string &payload); + ~GetMseFeatureSwitchResult(); + std::string getMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string errorCode_; + bool success_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_GETMSEFEATURESWITCHRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetMseSourceRequest.h b/mse/include/alibabacloud/mse/model/GetMseSourceRequest.h new file mode 100644 index 000000000..51432df03 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetMseSourceRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETMSESOURCEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETMSESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetMseSourceRequest : public RpcServiceRequest { +public: + GetMseSourceRequest(); + ~GetMseSourceRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETMSESOURCEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetMseSourceResult.h b/mse/include/alibabacloud/mse/model/GetMseSourceResult.h new file mode 100644 index 000000000..89c4da333 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetMseSourceResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETMSESOURCERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETMSESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetMseSourceResult : public ServiceResult + { + public: + struct MseSources + { + std::string type; + std::string address; + std::string instanceId; + std::string clusterId; + std::string name; + }; + + + GetMseSourceResult(); + explicit GetMseSourceResult(const std::string &payload); + ~GetMseSourceResult(); + 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_GETMSESOURCERESULT_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 new file mode 100644 index 000000000..54aa351f1 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetNacosConfigRequest.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_GETNACOSCONFIGREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETNACOSCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetNacosConfigRequest : public RpcServiceRequest { +public: + GetNacosConfigRequest(); + ~GetNacosConfigRequest(); + 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); + +private: + std::string instanceId_; + std::string dataId_; + std::string namespaceId_; + std::string acceptLanguage_; + bool beta_; + std::string group_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETNACOSCONFIGREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetNacosConfigResult.h b/mse/include/alibabacloud/mse/model/GetNacosConfigResult.h new file mode 100644 index 000000000..5f08e974e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetNacosConfigResult.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_GETNACOSCONFIGRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETNACOSCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetNacosConfigResult : public ServiceResult + { + public: + struct Configuration + { + std::string group; + std::string desc; + std::string type; + std::string dataId; + std::string encryptedDataKey; + std::string content; + std::string betaIps; + std::string tags; + std::string appName; + std::string md5; + }; + + + GetNacosConfigResult(); + explicit GetNacosConfigResult(const std::string &payload); + ~GetNacosConfigResult(); + Configuration getConfiguration()const; + std::string getMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Configuration configuration_; + std::string message_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_GETNACOSCONFIGRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetNacosHistoryConfigRequest.h b/mse/include/alibabacloud/mse/model/GetNacosHistoryConfigRequest.h new file mode 100644 index 000000000..399d8194f --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetNacosHistoryConfigRequest.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_GETNACOSHISTORYCONFIGREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETNACOSHISTORYCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetNacosHistoryConfigRequest : public RpcServiceRequest { +public: + GetNacosHistoryConfigRequest(); + ~GetNacosHistoryConfigRequest(); + std::string getNid() const; + void setNid(const std::string &nid); + 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 nid_; + std::string instanceId_; + std::string dataId_; + std::string namespaceId_; + std::string acceptLanguage_; + std::string group_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETNACOSHISTORYCONFIGREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetNacosHistoryConfigResult.h b/mse/include/alibabacloud/mse/model/GetNacosHistoryConfigResult.h new file mode 100644 index 000000000..735f4c140 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetNacosHistoryConfigResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_GETNACOSHISTORYCONFIGRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETNACOSHISTORYCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetNacosHistoryConfigResult : public ServiceResult + { + public: + struct Configuration + { + std::string group; + std::string dataId; + std::string encryptedDataKey; + std::string content; + std::string opType; + std::string appName; + std::string md5; + }; + + + GetNacosHistoryConfigResult(); + explicit GetNacosHistoryConfigResult(const std::string &payload); + ~GetNacosHistoryConfigResult(); + Configuration getConfiguration()const; + std::string getMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Configuration configuration_; + std::string message_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_GETNACOSHISTORYCONFIGRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/GetOverviewRequest.h b/mse/include/alibabacloud/mse/model/GetOverviewRequest.h new file mode 100644 index 000000000..48a745fe8 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetOverviewRequest.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_GETOVERVIEWREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_GETOVERVIEWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT GetOverviewRequest : public RpcServiceRequest { +public: + GetOverviewRequest(); + ~GetOverviewRequest(); + int getPeriod() const; + void setPeriod(int period); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + int period_; + std::string acceptLanguage_; + std::string region_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_GETOVERVIEWREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/GetOverviewResult.h b/mse/include/alibabacloud/mse/model/GetOverviewResult.h new file mode 100644 index 000000000..666ea12dd --- /dev/null +++ b/mse/include/alibabacloud/mse/model/GetOverviewResult.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_GETOVERVIEWRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_GETOVERVIEWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT GetOverviewResult : public ServiceResult + { + public: + + + GetOverviewResult(); + explicit GetOverviewResult(const std::string &payload); + ~GetOverviewResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + int getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + int code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_GETOVERVIEWRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ImportNacosConfigRequest.h b/mse/include/alibabacloud/mse/model/ImportNacosConfigRequest.h new file mode 100644 index 000000000..d78fcfc99 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ImportNacosConfigRequest.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_IMPORTNACOSCONFIGREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_IMPORTNACOSCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ImportNacosConfigRequest : public RpcServiceRequest { +public: + ImportNacosConfigRequest(); + ~ImportNacosConfigRequest(); + 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 getFileUrl() const; + void setFileUrl(const std::string &fileUrl); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + +private: + std::string instanceId_; + std::string namespaceId_; + std::string acceptLanguage_; + std::string fileUrl_; + std::string policy_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_IMPORTNACOSCONFIGREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ImportNacosConfigResult.h b/mse/include/alibabacloud/mse/model/ImportNacosConfigResult.h new file mode 100644 index 000000000..44ca21f3c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ImportNacosConfigResult.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_IMPORTNACOSCONFIGRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_IMPORTNACOSCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ImportNacosConfigResult : public ServiceResult + { + public: + struct Data + { + struct SkipDataItem + { + std::string group; + std::string dataId; + }; + struct FailDataItem + { + std::string group; + std::string dataId; + }; + std::vector failData; + std::vector skipData; + int succCount; + int skipCount; + }; + + + ImportNacosConfigResult(); + explicit ImportNacosConfigResult(const std::string &payload); + ~ImportNacosConfigResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data 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_; + Data data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_IMPORTNACOSCONFIGRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ImportServicesRequest.h b/mse/include/alibabacloud/mse/model/ImportServicesRequest.h new file mode 100644 index 000000000..fcfbded18 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ImportServicesRequest.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_IMPORTSERVICESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_IMPORTSERVICESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ImportServicesRequest : public RpcServiceRequest { +public: + struct ServiceList { + std::string serviceProtocol; + std::string name; + std::string _namespace; + std::string groupName; + std::string string; + std::vector ips; + long servicePort; + }; + ImportServicesRequest(); + ~ImportServicesRequest(); + std::string getSourceId() const; + void setSourceId(const std::string &sourceId); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::vector getServiceList() const; + void setServiceList(const std::vector &serviceList); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + +private: + std::string sourceId_; + std::string gatewayUniqueId_; + std::vector serviceList_; + std::string acceptLanguage_; + std::string sourceType_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_IMPORTSERVICESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ImportServicesResult.h b/mse/include/alibabacloud/mse/model/ImportServicesResult.h new file mode 100644 index 000000000..ecfe3ad6b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ImportServicesResult.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_IMPORTSERVICESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_IMPORTSERVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ImportServicesResult : public ServiceResult + { + public: + + + ImportServicesResult(); + explicit ImportServicesResult(const std::string &payload); + ~ImportServicesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + bool getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + bool data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_IMPORTSERVICESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListAlarmContactGroupsRequest.h b/mse/include/alibabacloud/mse/model/ListAlarmContactGroupsRequest.h new file mode 100644 index 000000000..907a52947 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAlarmContactGroupsRequest.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_LISTALARMCONTACTGROUPSREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTALARMCONTACTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListAlarmContactGroupsRequest : public RpcServiceRequest { +public: + ListAlarmContactGroupsRequest(); + ~ListAlarmContactGroupsRequest(); + 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); + +private: + int pageNum_; + std::string requestPars_; + int pageSize_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMCONTACTGROUPSREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListAlarmContactGroupsResult.h b/mse/include/alibabacloud/mse/model/ListAlarmContactGroupsResult.h new file mode 100644 index 000000000..3f97ca601 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAlarmContactGroupsResult.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_LISTALARMCONTACTGROUPSRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTALARMCONTACTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListAlarmContactGroupsResult : public ServiceResult + { + public: + struct AlarmContactGroupModel + { + std::string contactGroupId; + std::string contactGroupName; + }; + + + ListAlarmContactGroupsResult(); + explicit ListAlarmContactGroupsResult(const std::string &payload); + ~ListAlarmContactGroupsResult(); + std::string getHttpCode()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMCONTACTGROUPSRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListAlarmHistoriesRequest.h b/mse/include/alibabacloud/mse/model/ListAlarmHistoriesRequest.h new file mode 100644 index 000000000..e7fb08614 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAlarmHistoriesRequest.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_LISTALARMHISTORIESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTALARMHISTORIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListAlarmHistoriesRequest : public RpcServiceRequest { +public: + ListAlarmHistoriesRequest(); + ~ListAlarmHistoriesRequest(); + long getEndTime() const; + void setEndTime(long endTime); + std::string getAlarmMseType() const; + void setAlarmMseType(const std::string &alarmMseType); + long getStartTime() const; + void setStartTime(long startTime); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getAlarmName() const; + void setAlarmName(const std::string &alarmName); + +private: + long endTime_; + std::string alarmMseType_; + long startTime_; + int pageNum_; + std::string requestPars_; + int pageSize_; + std::string acceptLanguage_; + std::string alarmName_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMHISTORIESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListAlarmHistoriesResult.h b/mse/include/alibabacloud/mse/model/ListAlarmHistoriesResult.h new file mode 100644 index 000000000..fa7912a15 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAlarmHistoriesResult.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_LISTALARMHISTORIESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTALARMHISTORIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListAlarmHistoriesResult : public ServiceResult + { + public: + struct AlarmHistoryModel + { + std::string alarmName; + std::string alarmTime; + std::string alarmEmail; + std::string alarmDingDing; + std::string alarmPhone; + std::string alarmContent; + }; + + + ListAlarmHistoriesResult(); + explicit ListAlarmHistoriesResult(const std::string &payload); + ~ListAlarmHistoriesResult(); + std::string getHttpCode()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMHISTORIESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListAlarmItemsRequest.h b/mse/include/alibabacloud/mse/model/ListAlarmItemsRequest.h new file mode 100644 index 000000000..64dcc3a33 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAlarmItemsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTALARMITEMSREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTALARMITEMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListAlarmItemsRequest : public RpcServiceRequest { +public: + ListAlarmItemsRequest(); + ~ListAlarmItemsRequest(); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string requestPars_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMITEMSREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListAlarmItemsResult.h b/mse/include/alibabacloud/mse/model/ListAlarmItemsResult.h new file mode 100644 index 000000000..ed4d659a5 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAlarmItemsResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTALARMITEMSRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTALARMITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListAlarmItemsResult : public ServiceResult + { + public: + struct AlarmItem + { + std::string alarmDesc; + std::string alarmCode; + std::string clusterType; + }; + + + ListAlarmItemsResult(); + explicit ListAlarmItemsResult(const std::string &payload); + ~ListAlarmItemsResult(); + std::string getHttpCode()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMITEMSRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListAlarmRulesRequest.h b/mse/include/alibabacloud/mse/model/ListAlarmRulesRequest.h new file mode 100644 index 000000000..085e81e11 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAlarmRulesRequest.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_LISTALARMRULESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTALARMRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListAlarmRulesRequest : public RpcServiceRequest { +public: + ListAlarmRulesRequest(); + ~ListAlarmRulesRequest(); + std::string getAlarmMseType() const; + void setAlarmMseType(const std::string &alarmMseType); + 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); + +private: + std::string alarmMseType_; + int pageNum_; + std::string requestPars_; + int pageSize_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMRULESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListAlarmRulesResult.h b/mse/include/alibabacloud/mse/model/ListAlarmRulesResult.h new file mode 100644 index 000000000..f8558f34a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAlarmRulesResult.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_LISTALARMRULESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTALARMRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListAlarmRulesResult : public ServiceResult + { + public: + struct AlarmRuleModel + { + std::string alarmRuleId; + std::string alarmName; + std::string alarmRuleDetail; + std::string createTime; + std::string alarmStatus; + }; + + + ListAlarmRulesResult(); + explicit ListAlarmRulesResult(const std::string &payload); + ~ListAlarmRulesResult(); + std::string getHttpCode()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTALARMRULESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListAnsInstancesRequest.h b/mse/include/alibabacloud/mse/model/ListAnsInstancesRequest.h new file mode 100644 index 000000000..574d71159 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAnsInstancesRequest.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_LISTANSINSTANCESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTANSINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListAnsInstancesRequest : public RpcServiceRequest { +public: + ListAnsInstancesRequest(); + ~ListAnsInstancesRequest(); + std::string getClusterName() const; + void setClusterName(const std::string &clusterName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNum() const; + void setPageNum(int pageNum); + 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 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); + +private: + std::string clusterName_; + std::string clusterId_; + int pageNum_; + std::string groupName_; + std::string instanceId_; + std::string namespaceId_; + std::string requestPars_; + int pageSize_; + std::string acceptLanguage_; + std::string serviceName_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTANSINSTANCESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListAnsInstancesResult.h b/mse/include/alibabacloud/mse/model/ListAnsInstancesResult.h new file mode 100644 index 000000000..fe047d32e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAnsInstancesResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_LISTANSINSTANCESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTANSINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListAnsInstancesResult : public ServiceResult + { + public: + struct NacosAnsInstance + { + std::string app; + std::string instanceId; + std::string ip; + int port; + std::string metadata; + bool enabled; + int weight; + std::string datumKey; + int okCount; + std::string serviceName; + int failCount; + long lastBeat; + std::string clusterName; + std::string defaultKey; + bool ephemeral; + int instanceHeartBeatTimeOut; + int ipDeleteTimeout; + bool marked; + bool healthy; + int instanceHeartBeatInterval; + }; + + + ListAnsInstancesResult(); + explicit ListAnsInstancesResult(const std::string &payload); + ~ListAnsInstancesResult(); + std::string getHttpCode()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTANSINSTANCESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListAnsServiceClustersRequest.h b/mse/include/alibabacloud/mse/model/ListAnsServiceClustersRequest.h new file mode 100644 index 000000000..9e0b34d0b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAnsServiceClustersRequest.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_LISTANSSERVICECLUSTERSREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTANSSERVICECLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListAnsServiceClustersRequest : public RpcServiceRequest { +public: + ListAnsServiceClustersRequest(); + ~ListAnsServiceClustersRequest(); + std::string getClusterName() const; + void setClusterName(const std::string &clusterName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNum() const; + void setPageNum(int pageNum); + 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 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); + +private: + std::string clusterName_; + std::string clusterId_; + int pageNum_; + std::string groupName_; + std::string instanceId_; + std::string namespaceId_; + std::string requestPars_; + int pageSize_; + std::string acceptLanguage_; + std::string serviceName_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTANSSERVICECLUSTERSREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListAnsServiceClustersResult.h b/mse/include/alibabacloud/mse/model/ListAnsServiceClustersResult.h new file mode 100644 index 000000000..c89bc3bf2 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAnsServiceClustersResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_LISTANSSERVICECLUSTERSRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTANSSERVICECLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListAnsServiceClustersResult : public ServiceResult + { + public: + struct Data + { + struct NacosAnsCluster + { + int defaultCheckPort; + bool useIPPort4Check; + std::string serviceName; + std::string metadata; + std::string healthCheckerType; + int defaultPort; + std::string name; + }; + std::string groupName; + std::string selectorType; + std::vector clusters; + std::string metadata; + float protectThreshold; + bool ephemeral; + std::string name; + }; + + + ListAnsServiceClustersResult(); + explicit ListAnsServiceClustersResult(const std::string &payload); + ~ListAnsServiceClustersResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTANSSERVICECLUSTERSRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListAnsServicesRequest.h b/mse/include/alibabacloud/mse/model/ListAnsServicesRequest.h new file mode 100644 index 000000000..54701085a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAnsServicesRequest.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_LISTANSSERVICESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTANSSERVICESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListAnsServicesRequest : public RpcServiceRequest { +public: + ListAnsServicesRequest(); + ~ListAnsServicesRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNum() const; + void setPageNum(int pageNum); + 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 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + +private: + std::string clusterId_; + int pageNum_; + std::string groupName_; + std::string hasIpCount_; + std::string instanceId_; + std::string namespaceId_; + std::string requestPars_; + int pageSize_; + std::string acceptLanguage_; + std::string serviceName_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTANSSERVICESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListAnsServicesResult.h b/mse/include/alibabacloud/mse/model/ListAnsServicesResult.h new file mode 100644 index 000000000..faa597b07 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListAnsServicesResult.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_LISTANSSERVICESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTANSSERVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListAnsServicesResult : public ServiceResult + { + public: + struct SimpleNacosAnsService + { + std::string groupName; + int ipCount; + int healthyInstanceCount; + int clusterCount; + std::string name; + }; + + + ListAnsServicesResult(); + explicit ListAnsServicesResult(const std::string &payload); + ~ListAnsServicesResult(); + std::string getHttpCode()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTANSSERVICESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListClusterConnectionTypesRequest.h b/mse/include/alibabacloud/mse/model/ListClusterConnectionTypesRequest.h new file mode 100644 index 000000000..80389d369 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListClusterConnectionTypesRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_LISTCLUSTERCONNECTIONTYPESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTCLUSTERCONNECTIONTYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListClusterConnectionTypesRequest : public RpcServiceRequest { +public: + ListClusterConnectionTypesRequest(); + ~ListClusterConnectionTypesRequest(); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTCLUSTERCONNECTIONTYPESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListClusterConnectionTypesResult.h b/mse/include/alibabacloud/mse/model/ListClusterConnectionTypesResult.h new file mode 100644 index 000000000..88563d02a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListClusterConnectionTypesResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTCLUSTERCONNECTIONTYPESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTCLUSTERCONNECTIONTYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListClusterConnectionTypesResult : public ServiceResult + { + public: + struct DataItem + { + std::string code; + std::string showName; + }; + + + ListClusterConnectionTypesResult(); + explicit ListClusterConnectionTypesResult(const std::string &payload); + ~ListClusterConnectionTypesResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTCLUSTERCONNECTIONTYPESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListClusterTypesRequest.h b/mse/include/alibabacloud/mse/model/ListClusterTypesRequest.h new file mode 100644 index 000000000..785c3fe81 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListClusterTypesRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTCLUSTERTYPESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTCLUSTERTYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListClusterTypesRequest : public RpcServiceRequest { +public: + ListClusterTypesRequest(); + ~ListClusterTypesRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string regionId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTCLUSTERTYPESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListClusterTypesResult.h b/mse/include/alibabacloud/mse/model/ListClusterTypesResult.h new file mode 100644 index 000000000..087a9ac5e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListClusterTypesResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTCLUSTERTYPESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTCLUSTERTYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListClusterTypesResult : public ServiceResult + { + public: + struct DataItem + { + std::string code; + std::string showName; + }; + + + ListClusterTypesResult(); + explicit ListClusterTypesResult(const std::string &payload); + ~ListClusterTypesResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTCLUSTERTYPESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListClusterVersionsRequest.h b/mse/include/alibabacloud/mse/model/ListClusterVersionsRequest.h new file mode 100644 index 000000000..4e3e9a4fb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListClusterVersionsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTCLUSTERVERSIONSREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTCLUSTERVERSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListClusterVersionsRequest : public RpcServiceRequest { +public: + ListClusterVersionsRequest(); + ~ListClusterVersionsRequest(); + std::string getClusterType() const; + void setClusterType(const std::string &clusterType); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterType_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTCLUSTERVERSIONSREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListClusterVersionsResult.h b/mse/include/alibabacloud/mse/model/ListClusterVersionsResult.h new file mode 100644 index 000000000..970850aeb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListClusterVersionsResult.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_LISTCLUSTERVERSIONSRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTCLUSTERVERSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListClusterVersionsResult : public ServiceResult + { + public: + struct DataItem + { + std::string clusterType; + std::string code; + std::string showName; + }; + + + ListClusterVersionsResult(); + explicit ListClusterVersionsResult(const std::string &payload); + ~ListClusterVersionsResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTCLUSTERVERSIONSRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListClustersRequest.h b/mse/include/alibabacloud/mse/model/ListClustersRequest.h new file mode 100644 index 000000000..848665213 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListClustersRequest.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_LISTCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTCLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListClustersRequest : public RpcServiceRequest { +public: + ListClustersRequest(); + ~ListClustersRequest(); + std::string getClusterAliasName() const; + void setClusterAliasName(const std::string &clusterAliasName); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterAliasName_; + int pageNum_; + std::string regionId_; + std::string requestPars_; + int pageSize_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTCLUSTERSREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListClustersResult.h b/mse/include/alibabacloud/mse/model/ListClustersResult.h new file mode 100644 index 000000000..a414a6227 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListClustersResult.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_LISTCLUSTERSRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTCLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListClustersResult : public ServiceResult + { + public: + struct ClusterForListModel + { + std::string internetAddress; + std::string instanceId; + std::string clusterId; + std::string internetDomain; + std::string createTime; + std::string clusterType; + std::string endDate; + std::string clusterAliasName; + std::string appVersion; + std::string versionCode; + long instanceCount; + std::string intranetAddress; + bool canUpdate; + std::string chargeType; + std::string clusterName; + std::string initStatus; + std::string intranetDomain; + }; + + + ListClustersResult(); + explicit ListClustersResult(const std::string &payload); + ~ListClustersResult(); + std::string getHttpCode()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTCLUSTERSRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListEngineNamespacesRequest.h b/mse/include/alibabacloud/mse/model/ListEngineNamespacesRequest.h new file mode 100644 index 000000000..2d66b5d48 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListEngineNamespacesRequest.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_LISTENGINENAMESPACESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTENGINENAMESPACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListEngineNamespacesRequest : public RpcServiceRequest { +public: + ListEngineNamespacesRequest(); + ~ListEngineNamespacesRequest(); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterId_; + int pageNum_; + std::string instanceId_; + int pageSize_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTENGINENAMESPACESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListEngineNamespacesResult.h b/mse/include/alibabacloud/mse/model/ListEngineNamespacesResult.h new file mode 100644 index 000000000..1c132bd60 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListEngineNamespacesResult.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_LISTENGINENAMESPACESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTENGINENAMESPACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListEngineNamespacesResult : public ServiceResult + { + public: + struct _Namespace + { + int type; + int quota; + int configCount; + std::string namespaceShowName; + std::string _namespace; + std::string namespaceDesc; + std::string serviceCount; + }; + + + ListEngineNamespacesResult(); + explicit ListEngineNamespacesResult(const std::string &payload); + ~ListEngineNamespacesResult(); + std::string getHttpCode()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector<_Namespace> getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector<_Namespace> data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTENGINENAMESPACESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListEurekaInstancesRequest.h b/mse/include/alibabacloud/mse/model/ListEurekaInstancesRequest.h new file mode 100644 index 000000000..0a4a63410 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListEurekaInstancesRequest.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_LISTEUREKAINSTANCESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTEUREKAINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListEurekaInstancesRequest : public RpcServiceRequest { +public: + ListEurekaInstancesRequest(); + ~ListEurekaInstancesRequest(); + 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); + +private: + std::string clusterId_; + int pageNum_; + std::string requestPars_; + int pageSize_; + std::string acceptLanguage_; + std::string serviceName_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTEUREKAINSTANCESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListEurekaInstancesResult.h b/mse/include/alibabacloud/mse/model/ListEurekaInstancesResult.h new file mode 100644 index 000000000..d8a9dc977 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListEurekaInstancesResult.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_LISTEUREKAINSTANCESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTEUREKAINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListEurekaInstancesResult : public ServiceResult + { + public: + struct EurekaInstance + { + std::string status; + std::string app; + int securePort; + int renewalIntervalInSecs; + std::string ipAddr; + std::string instanceId; + int durationInSecs; + std::string vipAddress; + int port; + long lastUpdatedTimestamp; + std::string metadata; + long lastDirtyTimestamp; + std::string homePageUrl; + std::string hostName; + }; + + + ListEurekaInstancesResult(); + explicit ListEurekaInstancesResult(const std::string &payload); + ~ListEurekaInstancesResult(); + std::string getHttpCode()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTEUREKAINSTANCESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListEurekaServicesRequest.h b/mse/include/alibabacloud/mse/model/ListEurekaServicesRequest.h new file mode 100644 index 000000000..4c480a274 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListEurekaServicesRequest.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_LISTEUREKASERVICESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTEUREKASERVICESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListEurekaServicesRequest : public RpcServiceRequest { +public: + ListEurekaServicesRequest(); + ~ListEurekaServicesRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRequestPars() const; + void setRequestPars(const std::string &requestPars); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterId_; + int pageNum_; + std::string regionId_; + std::string requestPars_; + int pageSize_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTEUREKASERVICESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListEurekaServicesResult.h b/mse/include/alibabacloud/mse/model/ListEurekaServicesResult.h new file mode 100644 index 000000000..d76e203a9 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListEurekaServicesResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTEUREKASERVICESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTEUREKASERVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListEurekaServicesResult : public ServiceResult + { + public: + struct SimpleService + { + std::vector instancesId; + std::string upStatus; + std::string name; + }; + + + ListEurekaServicesResult(); + explicit ListEurekaServicesResult(const std::string &payload); + ~ListEurekaServicesResult(); + std::string getHttpCode()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getData()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector data_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTEUREKASERVICESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListGatewayDomainRequest.h b/mse/include/alibabacloud/mse/model/ListGatewayDomainRequest.h new file mode 100644 index 000000000..f8d229145 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewayDomainRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTGATEWAYDOMAINREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListGatewayDomainRequest : public RpcServiceRequest { +public: + ListGatewayDomainRequest(); + ~ListGatewayDomainRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTGATEWAYDOMAINREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListGatewayDomainResult.h b/mse/include/alibabacloud/mse/model/ListGatewayDomainResult.h new file mode 100644 index 000000000..b89e922cc --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewayDomainResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTGATEWAYDOMAINRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListGatewayDomainResult : public ServiceResult + { + public: + struct Domains + { + std::string gmtCreate; + bool mustHttps; + std::string gmtModified; + std::string certIdentifier; + long id; + std::string protocol; + long gatewayId; + std::string certBeforeDate; + std::string name; + }; + + + ListGatewayDomainResult(); + explicit ListGatewayDomainResult(const std::string &payload); + ~ListGatewayDomainResult(); + 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_LISTGATEWAYDOMAINRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListGatewayRequest.h b/mse/include/alibabacloud/mse/model/ListGatewayRequest.h new file mode 100644 index 000000000..f4d36d526 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewayRequest.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_LISTGATEWAYREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListGatewayRequest : public RpcServiceRequest { +public: + struct FilterParams { + std::string gatewayType; + std::string instanceId; + std::string gatewayUniqueId; + std::string name; + std::string vpc; + }; + ListGatewayRequest(); + ~ListGatewayRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getOrderItem() const; + void setOrderItem(const std::string &orderItem); + int getPageSize() const; + void setPageSize(int pageSize); + bool getDescSort() const; + void setDescSort(bool descSort); + FilterParams getFilterParams() const; + void setFilterParams(const FilterParams &filterParams); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + int pageNumber_; + std::string orderItem_; + int pageSize_; + bool descSort_; + FilterParams filterParams_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTGATEWAYREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListGatewayResult.h b/mse/include/alibabacloud/mse/model/ListGatewayResult.h new file mode 100644 index 000000000..6abb8fe93 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewayResult.h @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTGATEWAYRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListGatewayResult : public ServiceResult + { + public: + struct Data + { + struct Gateways + { + struct SlbItem + { + std::string slbId; + std::string slbPort; + std::string statusDesc; + std::string type; + std::string gatewaySlbMode; + std::string slbIp; + std::string gatewaySlbStatus; + std::string slbSpec; + }; + struct InternetSlbItem + { + std::string slbId; + std::string slbPort; + std::string statusDesc; + std::string type; + std::string gatewaySlbMode; + std::string slbIp; + std::string gatewaySlbStatus; + std::string slbSpec; + std::string internetNetworkFlow; + }; + std::string currentVersion; + std::vector slb; + std::string gmtModified; + std::string vswitch2; + std::string gatewayType; + bool upgrade; + std::string name; + std::string statusDesc; + bool armsOn; + std::vector internetSlb; + int status; + bool mustUpgrade; + std::string instanceId; + bool ahasOn; + int replica; + std::string endDate; + std::string gatewayUniqueId; + std::string gmtCreate; + std::string latestVersion; + std::string chargeType; + std::string region; + std::string primaryUser; + long id; + std::string tag; + std::string spec; + }; + int pageSize; + int pageNumber; + long totalSize; + std::vector result; + }; + + + ListGatewayResult(); + explicit ListGatewayResult(const std::string &payload); + ~ListGatewayResult(); + 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_LISTGATEWAYRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListGatewayServiceRequest.h b/mse/include/alibabacloud/mse/model/ListGatewayServiceRequest.h new file mode 100644 index 000000000..506a94f2b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewayServiceRequest.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_LISTGATEWAYSERVICEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListGatewayServiceRequest : public RpcServiceRequest { +public: + struct FilterParams { + std::string gatewayUniqueId; + std::string name; + std::string _namespace; + std::string sourceType; + std::string groupName; + }; + ListGatewayServiceRequest(); + ~ListGatewayServiceRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getOrderItem() const; + void setOrderItem(const std::string &orderItem); + int getPageSize() const; + void setPageSize(int pageSize); + bool getDescSort() const; + void setDescSort(bool descSort); + FilterParams getFilterParams() const; + void setFilterParams(const FilterParams &filterParams); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + int pageNumber_; + std::string orderItem_; + int pageSize_; + bool descSort_; + FilterParams filterParams_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTGATEWAYSERVICEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListGatewayServiceResult.h b/mse/include/alibabacloud/mse/model/ListGatewayServiceResult.h new file mode 100644 index 000000000..6387dfe29 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewayServiceResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTGATEWAYSERVICERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListGatewayServiceResult : public ServiceResult + { + public: + struct Data + { + struct Services + { + struct VersionsItem + { + std::string name; + }; + std::string groupName; + long servicePort; + std::string sourceType; + long sourceId; + std::string metaInfo; + std::string gmtModified; + std::string _namespace; + long gatewayId; + std::vector ips; + std::string name; + std::string gatewayUniqueId; + std::string gmtCreate; + std::vector versions; + std::string serviceNameInRegistry; + std::string serviceProtocol; + long id; + }; + int pageSize; + int pageNumber; + long totalSize; + std::vector result; + }; + + + ListGatewayServiceResult(); + explicit ListGatewayServiceResult(const std::string &payload); + ~ListGatewayServiceResult(); + 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_LISTGATEWAYSERVICERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListGatewaySlbRequest.h b/mse/include/alibabacloud/mse/model/ListGatewaySlbRequest.h new file mode 100644 index 000000000..631e5a5c6 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewaySlbRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTGATEWAYSLBREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYSLBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListGatewaySlbRequest : public RpcServiceRequest { +public: + ListGatewaySlbRequest(); + ~ListGatewaySlbRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTGATEWAYSLBREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListGatewaySlbResult.h b/mse/include/alibabacloud/mse/model/ListGatewaySlbResult.h new file mode 100644 index 000000000..942ba7ae6 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListGatewaySlbResult.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_LISTGATEWAYSLBRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTGATEWAYSLBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListGatewaySlbResult : public ServiceResult + { + public: + struct Sources + { + std::string slbId; + std::string slbPort; + std::string statusDesc; + std::string type; + std::string gmtCreate; + std::string gatewaySlbMode; + std::string slbIp; + std::string gatewaySlbStatus; + std::string id; + std::string gatewayId; + }; + + + ListGatewaySlbResult(); + explicit ListGatewaySlbResult(const std::string &payload); + ~ListGatewaySlbResult(); + 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_LISTGATEWAYSLBRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListListenersByConfigRequest.h b/mse/include/alibabacloud/mse/model/ListListenersByConfigRequest.h new file mode 100644 index 000000000..bb9dab2b4 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListListenersByConfigRequest.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_LISTLISTENERSBYCONFIGREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTLISTENERSBYCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListListenersByConfigRequest : public RpcServiceRequest { +public: + ListListenersByConfigRequest(); + ~ListListenersByConfigRequest(); + 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); + +private: + std::string instanceId_; + std::string dataId_; + std::string namespaceId_; + std::string requestPars_; + std::string acceptLanguage_; + std::string group_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTLISTENERSBYCONFIGREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListListenersByConfigResult.h b/mse/include/alibabacloud/mse/model/ListListenersByConfigResult.h new file mode 100644 index 000000000..c24a4dfe8 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListListenersByConfigResult.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_LISTLISTENERSBYCONFIGRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTLISTENERSBYCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListListenersByConfigResult : public ServiceResult + { + public: + struct Listener + { + std::string ip; + std::string md5; + }; + + + ListListenersByConfigResult(); + explicit ListListenersByConfigResult(const std::string &payload); + ~ListListenersByConfigResult(); + std::string getHttpCode()const; + std::vector getListeners()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + std::vector listeners_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTLISTENERSBYCONFIGRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListListenersByIpRequest.h b/mse/include/alibabacloud/mse/model/ListListenersByIpRequest.h new file mode 100644 index 000000000..433f7b7ae --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListListenersByIpRequest.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_LISTLISTENERSBYIPREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTLISTENERSBYIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListListenersByIpRequest : public RpcServiceRequest { +public: + ListListenersByIpRequest(); + ~ListListenersByIpRequest(); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string ip_; + std::string instanceId_; + std::string namespaceId_; + std::string requestPars_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTLISTENERSBYIPREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListListenersByIpResult.h b/mse/include/alibabacloud/mse/model/ListListenersByIpResult.h new file mode 100644 index 000000000..633b31d15 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListListenersByIpResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTLISTENERSBYIPRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTLISTENERSBYIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListListenersByIpResult : public ServiceResult + { + public: + struct Listener + { + std::string group; + std::string dataId; + std::string md5; + }; + + + ListListenersByIpResult(); + explicit ListListenersByIpResult(const std::string &payload); + ~ListListenersByIpResult(); + std::string getHttpCode()const; + std::vector getListeners()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + std::vector listeners_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTLISTENERSBYIPRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListNacosConfigsRequest.h b/mse/include/alibabacloud/mse/model/ListNacosConfigsRequest.h new file mode 100644 index 000000000..524aa0536 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListNacosConfigsRequest.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_LISTNACOSCONFIGSREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTNACOSCONFIGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListNacosConfigsRequest : public RpcServiceRequest { +public: + ListNacosConfigsRequest(); + ~ListNacosConfigsRequest(); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDataId() const; + void setDataId(const std::string &dataId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getGroup() const; + void setGroup(const std::string &group); + +private: + int pageNum_; + std::string tags_; + std::string instanceId_; + std::string dataId_; + std::string appName_; + std::string regionId_; + std::string namespaceId_; + std::string requestPars_; + int pageSize_; + std::string acceptLanguage_; + std::string group_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTNACOSCONFIGSREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListNacosConfigsResult.h b/mse/include/alibabacloud/mse/model/ListNacosConfigsResult.h new file mode 100644 index 000000000..50b819953 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListNacosConfigsResult.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_LISTNACOSCONFIGSRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTNACOSCONFIGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListNacosConfigsResult : public ServiceResult + { + public: + struct NacosConfigForListModel + { + std::string group; + std::string dataId; + std::string id; + std::string appName; + }; + + + ListNacosConfigsResult(); + explicit ListNacosConfigsResult(const std::string &payload); + ~ListNacosConfigsResult(); + std::string getHttpCode()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorCode()const; + std::vector getConfigurations()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string errorCode_; + std::vector configurations_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTNACOSCONFIGSRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListNacosHistoryConfigsRequest.h b/mse/include/alibabacloud/mse/model/ListNacosHistoryConfigsRequest.h new file mode 100644 index 000000000..32834b9dc --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListNacosHistoryConfigsRequest.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_LISTNACOSHISTORYCONFIGSREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTNACOSHISTORYCONFIGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListNacosHistoryConfigsRequest : public RpcServiceRequest { +public: + ListNacosHistoryConfigsRequest(); + ~ListNacosHistoryConfigsRequest(); + 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; + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getGroup() const; + void setGroup(const std::string &group); + +private: + 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_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTNACOSHISTORYCONFIGSREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListNacosHistoryConfigsResult.h b/mse/include/alibabacloud/mse/model/ListNacosHistoryConfigsResult.h new file mode 100644 index 000000000..6eba9891e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListNacosHistoryConfigsResult.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_LISTNACOSHISTORYCONFIGSRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTNACOSHISTORYCONFIGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListNacosHistoryConfigsResult : public ServiceResult + { + public: + struct HistoryItem + { + std::string group; + std::string dataId; + long lastModifiedTime; + std::string opType; + long id; + std::string appName; + }; + + + ListNacosHistoryConfigsResult(); + explicit ListNacosHistoryConfigsResult(const std::string &payload); + ~ListNacosHistoryConfigsResult(); + std::string getHttpCode()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorCode()const; + std::vector getHistoryItems()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string httpCode_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string errorCode_; + std::vector historyItems_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTNACOSHISTORYCONFIGSRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListSSLCertRequest.h b/mse/include/alibabacloud/mse/model/ListSSLCertRequest.h new file mode 100644 index 000000000..8ba02215e --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListSSLCertRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTSSLCERTREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTSSLCERTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListSSLCertRequest : public RpcServiceRequest { +public: + ListSSLCertRequest(); + ~ListSSLCertRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTSSLCERTREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListSSLCertResult.h b/mse/include/alibabacloud/mse/model/ListSSLCertResult.h new file mode 100644 index 000000000..498b17a2a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListSSLCertResult.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_LISTSSLCERTRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTSSLCERTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListSSLCertResult : public ServiceResult + { + public: + struct Domains + { + std::string afterDate; + std::string gmtBefore; + std::string sans; + std::string issuer; + std::string certIdentifier; + std::string certName; + std::string algorithm; + std::string gmtAfter; + std::string commonName; + std::string beforeDate; + }; + + + ListSSLCertResult(); + explicit ListSSLCertResult(const std::string &payload); + ~ListSSLCertResult(); + 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_LISTSSLCERTRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListServiceSourceRequest.h b/mse/include/alibabacloud/mse/model/ListServiceSourceRequest.h new file mode 100644 index 000000000..6054d6ad9 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListServiceSourceRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_LISTSERVICESOURCEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTSERVICESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListServiceSourceRequest : public RpcServiceRequest { +public: + ListServiceSourceRequest(); + ~ListServiceSourceRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTSERVICESOURCEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListServiceSourceResult.h b/mse/include/alibabacloud/mse/model/ListServiceSourceResult.h new file mode 100644 index 000000000..eeb76a7a8 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListServiceSourceResult.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_LISTSERVICESOURCERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTSERVICESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListServiceSourceResult : public ServiceResult + { + public: + struct Sources + { + std::string type; + std::string gmtCreate; + std::string sourceUniqueId; + std::string address; + std::string gmtModified; + int bindingWithGateway; + long id; + long gatewayId; + std::string source; + std::string name; + }; + + + ListServiceSourceResult(); + explicit ListServiceSourceResult(const std::string &payload); + ~ListServiceSourceResult(); + 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_LISTSERVICESOURCERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ListZnodeChildrenRequest.h b/mse/include/alibabacloud/mse/model/ListZnodeChildrenRequest.h new file mode 100644 index 000000000..c07cb8227 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListZnodeChildrenRequest.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_LISTZNODECHILDRENREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTZNODECHILDRENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ListZnodeChildrenRequest : public RpcServiceRequest { +public: + ListZnodeChildrenRequest(); + ~ListZnodeChildrenRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getPath() const; + void setPath(const std::string &path); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterId_; + std::string path_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_LISTZNODECHILDRENREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ListZnodeChildrenResult.h b/mse/include/alibabacloud/mse/model/ListZnodeChildrenResult.h new file mode 100644 index 000000000..93db6d112 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ListZnodeChildrenResult.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_LISTZNODECHILDRENRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_LISTZNODECHILDRENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ListZnodeChildrenResult : public ServiceResult + { + public: + struct ZnodeModel + { + std::string path; + std::string data; + bool dir; + std::string name; + }; + + + ListZnodeChildrenResult(); + explicit ListZnodeChildrenResult(const std::string &payload); + ~ListZnodeChildrenResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_LISTZNODECHILDRENRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterRequest.h b/mse/include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterRequest.h new file mode 100644 index 000000000..f487fa58b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterRequest.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_MODIFYGOVERNANCEKUBERNETESCLUSTERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_MODIFYGOVERNANCEKUBERNETESCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ModifyGovernanceKubernetesClusterRequest : public RpcServiceRequest { +public: + ModifyGovernanceKubernetesClusterRequest(); + ~ModifyGovernanceKubernetesClusterRequest(); + 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 namespaceInfos_; + std::string clusterId_; + std::string regionId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_MODIFYGOVERNANCEKUBERNETESCLUSTERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterResult.h b/mse/include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterResult.h new file mode 100644 index 000000000..13510c437 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ModifyGovernanceKubernetesClusterResult.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_MODIFYGOVERNANCEKUBERNETESCLUSTERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_MODIFYGOVERNANCEKUBERNETESCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ModifyGovernanceKubernetesClusterResult : public ServiceResult + { + public: + + + ModifyGovernanceKubernetesClusterResult(); + explicit ModifyGovernanceKubernetesClusterResult(const std::string &payload); + ~ModifyGovernanceKubernetesClusterResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + bool getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + bool data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_MODIFYGOVERNANCEKUBERNETESCLUSTERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/PullServicesRequest.h b/mse/include/alibabacloud/mse/model/PullServicesRequest.h new file mode 100644 index 000000000..1d065034b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/PullServicesRequest.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_PULLSERVICESREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_PULLSERVICESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT PullServicesRequest : public RpcServiceRequest { +public: + PullServicesRequest(); + ~PullServicesRequest(); + std::string getSourceId() const; + void setSourceId(const std::string &sourceId); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + +private: + std::string sourceId_; + std::string gatewayUniqueId_; + std::string acceptLanguage_; + std::string sourceType_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_PULLSERVICESREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/PullServicesResult.h b/mse/include/alibabacloud/mse/model/PullServicesResult.h new file mode 100644 index 000000000..79a5a9024 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/PullServicesResult.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_PULLSERVICESRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_PULLSERVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT PullServicesResult : public ServiceResult + { + public: + struct PullServices + { + struct ServicesItem + { + std::string groupName; + std::string sourceId; + std::string sourceType; + std::string _namespace; + std::string name; + }; + std::string groupName; + std::vector services; + std::string _namespace; + }; + + + PullServicesResult(); + explicit PullServicesResult(const std::string &payload); + ~PullServicesResult(); + 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_PULLSERVICESRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QueryBusinessLocationsRequest.h b/mse/include/alibabacloud/mse/model/QueryBusinessLocationsRequest.h new file mode 100644 index 000000000..b16f57adb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryBusinessLocationsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QUERYBUSINESSLOCATIONSREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYBUSINESSLOCATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QueryBusinessLocationsRequest : public RpcServiceRequest { +public: + QueryBusinessLocationsRequest(); + ~QueryBusinessLocationsRequest(); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYBUSINESSLOCATIONSREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QueryBusinessLocationsResult.h b/mse/include/alibabacloud/mse/model/QueryBusinessLocationsResult.h new file mode 100644 index 000000000..1b11e4a61 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryBusinessLocationsResult.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_QUERYBUSINESSLOCATIONSRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYBUSINESSLOCATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QueryBusinessLocationsResult : public ServiceResult + { + public: + struct LocationData + { + std::string districtShowName; + std::string description; + std::string enName; + std::string districtId; + std::string showName; + std::string districtCnName; + std::string name; + std::string cnName; + std::string type; + std::string districtEnName; + std::string enDescription; + int ordering; + int districtOrdering; + }; + + + QueryBusinessLocationsResult(); + explicit QueryBusinessLocationsResult(const std::string &payload); + ~QueryBusinessLocationsResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getErrorCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string errorCode_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYBUSINESSLOCATIONSRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QueryClusterDetailRequest.h b/mse/include/alibabacloud/mse/model/QueryClusterDetailRequest.h new file mode 100644 index 000000000..ad8e13c6a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryClusterDetailRequest.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_QUERYCLUSTERDETAILREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QueryClusterDetailRequest : public RpcServiceRequest { +public: + QueryClusterDetailRequest(); + ~QueryClusterDetailRequest(); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string orderId_; + std::string clusterId_; + std::string instanceId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERDETAILREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QueryClusterDetailResult.h b/mse/include/alibabacloud/mse/model/QueryClusterDetailResult.h new file mode 100644 index 000000000..41307582c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryClusterDetailResult.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERDETAILRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QueryClusterDetailResult : public ServiceResult + { + public: + struct Data + { + struct InstanceModel + { + std::string role; + std::string podName; + std::string internetIp; + std::string creationTimestamp; + std::string singleTunnelVip; + std::string ip; + std::string healthStatus; + }; + std::string internetAddress; + std::string aclEntryList; + int cpu; + std::string internetPort; + std::string intranetPort; + std::string diskType; + std::string appVersion; + std::string payInfo; + long initCostTime; + std::string clusterName; + std::string intranetDomain; + std::string netType; + std::string mseVersion; + std::string clusterVersion; + std::string connectionType; + std::string clusterId; + std::string instanceId; + std::string internetDomain; + std::string createTime; + std::string aclId; + std::string clusterSpecification; + std::string vSwitchId; + std::string healthStatus; + long memoryCapacity; + std::string clusterType; + std::vector instanceModels; + std::string clusterAliasName; + int instanceCount; + std::string intranetAddress; + long diskCapacity; + std::string vpcId; + std::string pubNetworkFlow; + std::string chargeType; + std::string regionId; + std::string initStatus; + }; + + + QueryClusterDetailResult(); + explicit QueryClusterDetailResult(const std::string &payload); + ~QueryClusterDetailResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERDETAILRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QueryClusterDiskSpecificationRequest.h b/mse/include/alibabacloud/mse/model/QueryClusterDiskSpecificationRequest.h new file mode 100644 index 000000000..378b2d530 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryClusterDiskSpecificationRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERDISKSPECIFICATIONREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERDISKSPECIFICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QueryClusterDiskSpecificationRequest : public RpcServiceRequest { +public: + QueryClusterDiskSpecificationRequest(); + ~QueryClusterDiskSpecificationRequest(); + std::string getClusterType() const; + void setClusterType(const std::string &clusterType); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterType_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERDISKSPECIFICATIONREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QueryClusterDiskSpecificationResult.h b/mse/include/alibabacloud/mse/model/QueryClusterDiskSpecificationResult.h new file mode 100644 index 000000000..a0cb695a6 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryClusterDiskSpecificationResult.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_QUERYCLUSTERDISKSPECIFICATIONRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERDISKSPECIFICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QueryClusterDiskSpecificationResult : public ServiceResult + { + public: + struct Data + { + int min; + int max; + int step; + }; + + + QueryClusterDiskSpecificationResult(); + explicit QueryClusterDiskSpecificationResult(const std::string &payload); + ~QueryClusterDiskSpecificationResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data 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_; + Data data_; + std::string errorCode_; + std::string dynamicMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERDISKSPECIFICATIONRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QueryClusterSpecificationRequest.h b/mse/include/alibabacloud/mse/model/QueryClusterSpecificationRequest.h new file mode 100644 index 000000000..cb12dcf29 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryClusterSpecificationRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QUERYCLUSTERSPECIFICATIONREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERSPECIFICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QueryClusterSpecificationRequest : public RpcServiceRequest { +public: + QueryClusterSpecificationRequest(); + ~QueryClusterSpecificationRequest(); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERSPECIFICATIONREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QueryClusterSpecificationResult.h b/mse/include/alibabacloud/mse/model/QueryClusterSpecificationResult.h new file mode 100644 index 000000000..4f1da04c3 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryClusterSpecificationResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERSPECIFICATIONRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERSPECIFICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QueryClusterSpecificationResult : public ServiceResult + { + public: + struct DataItem + { + std::string maxTps; + std::string cpuCapacity; + std::string instanceCount; + std::string diskCapacity; + std::string clusterSpecificationName; + std::string memoryCapacity; + std::string maxCon; + }; + + + QueryClusterSpecificationResult(); + explicit QueryClusterSpecificationResult(const std::string &payload); + ~QueryClusterSpecificationResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector 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_; + std::vector data_; + std::string errorCode_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYCLUSTERSPECIFICATIONRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QueryConfigRequest.h b/mse/include/alibabacloud/mse/model/QueryConfigRequest.h new file mode 100644 index 000000000..6ab61be0c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryConfigRequest.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_QUERYCONFIGREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QueryConfigRequest : public RpcServiceRequest { +public: + QueryConfigRequest(); + ~QueryConfigRequest(); + 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: + std::string configType_; + std::string clusterId_; + std::string instanceId_; + std::string requestPars_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYCONFIGREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QueryConfigResult.h b/mse/include/alibabacloud/mse/model/QueryConfigResult.h new file mode 100644 index 000000000..3ada94e0a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryConfigResult.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_QUERYCONFIGRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QueryConfigResult : public ServiceResult + { + public: + struct Data + { + std::string maxClientCnxns; + bool mCPEnabled; + std::string maxSessionTimeout; + std::string userName; + bool openSuperAcl; + std::string tickTime; + bool namingCreateServiceSupported; + bool configSecretSupported; + std::string autopurgeSnapRetainCount; + std::string initLimit; + std::string passWord; + std::string jvmFlagsCustom; + bool configAuthEnabled; + bool restartFlag; + std::string autopurgePurgeInterval; + std::string juteMaxbuffer; + bool mCPSupported; + std::string minSessionTimeout; + std::string clusterName; + bool configSecretEnabled; + bool configAuthSupported; + std::string syncLimit; + }; + + + QueryConfigResult(); + explicit QueryConfigResult(const std::string &payload); + ~QueryConfigResult(); + 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_QUERYCONFIGRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QueryGatewayRegionRequest.h b/mse/include/alibabacloud/mse/model/QueryGatewayRegionRequest.h new file mode 100644 index 000000000..3c6272812 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryGatewayRegionRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QUERYGATEWAYREGIONREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYGATEWAYREGIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QueryGatewayRegionRequest : public RpcServiceRequest { +public: + QueryGatewayRegionRequest(); + ~QueryGatewayRegionRequest(); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYGATEWAYREGIONREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QueryGatewayRegionResult.h b/mse/include/alibabacloud/mse/model/QueryGatewayRegionResult.h new file mode 100644 index 000000000..e7dae0977 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryGatewayRegionResult.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_QUERYGATEWAYREGIONRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYGATEWAYREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QueryGatewayRegionResult : public ServiceResult + { + public: + + + QueryGatewayRegionResult(); + explicit QueryGatewayRegionResult(const std::string &payload); + ~QueryGatewayRegionResult(); + 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_QUERYGATEWAYREGIONRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QueryGatewayTypeRequest.h b/mse/include/alibabacloud/mse/model/QueryGatewayTypeRequest.h new file mode 100644 index 000000000..673e226f0 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryGatewayTypeRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QUERYGATEWAYTYPEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYGATEWAYTYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QueryGatewayTypeRequest : public RpcServiceRequest { +public: + QueryGatewayTypeRequest(); + ~QueryGatewayTypeRequest(); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYGATEWAYTYPEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QueryGatewayTypeResult.h b/mse/include/alibabacloud/mse/model/QueryGatewayTypeResult.h new file mode 100644 index 000000000..b96269d0f --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryGatewayTypeResult.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_QUERYGATEWAYTYPERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYGATEWAYTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QueryGatewayTypeResult : public ServiceResult + { + public: + + + QueryGatewayTypeResult(); + explicit QueryGatewayTypeResult(const std::string &payload); + ~QueryGatewayTypeResult(); + 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_QUERYGATEWAYTYPERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterRequest.h b/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterRequest.h new file mode 100644 index 000000000..ac26d001b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterRequest.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_QUERYGOVERNANCEKUBERNETESCLUSTERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYGOVERNANCEKUBERNETESCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QueryGovernanceKubernetesClusterRequest : public RpcServiceRequest { +public: + QueryGovernanceKubernetesClusterRequest(); + ~QueryGovernanceKubernetesClusterRequest(); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterName_; + std::string clusterId_; + int pageNumber_; + int pageSize_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYGOVERNANCEKUBERNETESCLUSTERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterResult.h b/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterResult.h new file mode 100644 index 000000000..f4e9a4c46 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryGovernanceKubernetesClusterResult.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_QUERYGOVERNANCEKUBERNETESCLUSTERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYGOVERNANCEKUBERNETESCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QueryGovernanceKubernetesClusterResult : public ServiceResult + { + public: + struct Data + { + struct ClusterList + { + std::string pilotStartTime; + std::string k8sVersion; + std::string clusterId; + std::string clusterName; + std::string region; + std::string namespaceInfos; + }; + int pageSize; + int pageNumber; + int totalSize; + std::vector result; + }; + + + QueryGovernanceKubernetesClusterResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYGOVERNANCEKUBERNETESCLUSTERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QueryMonitorRequest.h b/mse/include/alibabacloud/mse/model/QueryMonitorRequest.h new file mode 100644 index 000000000..1d1614056 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryMonitorRequest.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_QUERYMONITORREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QueryMonitorRequest : public RpcServiceRequest { +public: + QueryMonitorRequest(); + ~QueryMonitorRequest(); + 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_; + long endTime_; + std::string clusterId_; + long startTime_; + std::string instanceId_; + std::string requestPars_; + std::string acceptLanguage_; + long step_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYMONITORREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QueryMonitorResult.h b/mse/include/alibabacloud/mse/model/QueryMonitorResult.h new file mode 100644 index 000000000..80342b3d2 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryMonitorResult.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_QUERYMONITORRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QueryMonitorResult : public ServiceResult + { + public: + + + QueryMonitorResult(); + explicit QueryMonitorResult(const std::string &payload); + ~QueryMonitorResult(); + 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_QUERYMONITORRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QuerySlbSpecRequest.h b/mse/include/alibabacloud/mse/model/QuerySlbSpecRequest.h new file mode 100644 index 000000000..6477e2bd0 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QuerySlbSpecRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QUERYSLBSPECREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYSLBSPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QuerySlbSpecRequest : public RpcServiceRequest { +public: + QuerySlbSpecRequest(); + ~QuerySlbSpecRequest(); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYSLBSPECREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QuerySlbSpecResult.h b/mse/include/alibabacloud/mse/model/QuerySlbSpecResult.h new file mode 100644 index 000000000..a9299fcea --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QuerySlbSpecResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_QUERYSLBSPECRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYSLBSPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QuerySlbSpecResult : public ServiceResult + { + public: + struct SlbSpecs + { + std::string maxConnection; + std::string qps; + int id; + std::string spec; + std::string newConnectionPerSecond; + std::string name; + }; + + + QuerySlbSpecResult(); + explicit QuerySlbSpecResult(const std::string &payload); + ~QuerySlbSpecResult(); + 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_QUERYSLBSPECRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/QueryZnodeDetailRequest.h b/mse/include/alibabacloud/mse/model/QueryZnodeDetailRequest.h new file mode 100644 index 000000000..d643530ae --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryZnodeDetailRequest.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_QUERYZNODEDETAILREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYZNODEDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT QueryZnodeDetailRequest : public RpcServiceRequest { +public: + QueryZnodeDetailRequest(); + ~QueryZnodeDetailRequest(); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterId_; + std::string path_; + std::string requestPars_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYZNODEDETAILREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/QueryZnodeDetailResult.h b/mse/include/alibabacloud/mse/model/QueryZnodeDetailResult.h new file mode 100644 index 000000000..9f525a94c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/QueryZnodeDetailResult.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_QUERYZNODEDETAILRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_QUERYZNODEDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT QueryZnodeDetailResult : public ServiceResult + { + public: + struct Data + { + std::string path; + std::string data; + bool dir; + std::string name; + }; + + + QueryZnodeDetailResult(); + explicit QueryZnodeDetailResult(const std::string &payload); + ~QueryZnodeDetailResult(); + std::string getMessage()const; + Data getData()const; + std::string getErrorCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string errorCode_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_QUERYZNODEDETAILRESULT_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 new file mode 100644 index 000000000..a0ee604ea --- /dev/null +++ b/mse/include/alibabacloud/mse/model/RestartClusterRequest.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_RESTARTCLUSTERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_RESTARTCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT RestartClusterRequest : public RpcServiceRequest { +public: + RestartClusterRequest(); + ~RestartClusterRequest(); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterId_; + std::string podNameList_; + std::string instanceId_; + std::string requestPars_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_RESTARTCLUSTERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/RestartClusterResult.h b/mse/include/alibabacloud/mse/model/RestartClusterResult.h new file mode 100644 index 000000000..5c5f1e4c0 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/RestartClusterResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_RESTARTCLUSTERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_RESTARTCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT RestartClusterResult : public ServiceResult + { + public: + + + RestartClusterResult(); + explicit RestartClusterResult(const std::string &payload); + ~RestartClusterResult(); + std::string getMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_RESTARTCLUSTERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/RetryClusterRequest.h b/mse/include/alibabacloud/mse/model/RetryClusterRequest.h new file mode 100644 index 000000000..a89c21aa7 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/RetryClusterRequest.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_RETRYCLUSTERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_RETRYCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT RetryClusterRequest : public RpcServiceRequest { +public: + RetryClusterRequest(); + ~RetryClusterRequest(); + 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 clusterId_; + std::string instanceId_; + std::string requestPars_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_RETRYCLUSTERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/RetryClusterResult.h b/mse/include/alibabacloud/mse/model/RetryClusterResult.h new file mode 100644 index 000000000..72acc26fa --- /dev/null +++ b/mse/include/alibabacloud/mse/model/RetryClusterResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_RETRYCLUSTERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_RETRYCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT RetryClusterResult : public ServiceResult + { + public: + + + RetryClusterResult(); + explicit RetryClusterResult(const std::string &payload); + ~RetryClusterResult(); + std::string getMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_RETRYCLUSTERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/ScalingClusterRequest.h b/mse/include/alibabacloud/mse/model/ScalingClusterRequest.h new file mode 100644 index 000000000..65b702643 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ScalingClusterRequest.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_SCALINGCLUSTERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_SCALINGCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT ScalingClusterRequest : public RpcServiceRequest { +public: + ScalingClusterRequest(); + ~ScalingClusterRequest(); + std::string getClusterSpecification() const; + void setClusterSpecification(const std::string &clusterSpecification); + int getCpu() const; + void setCpu(int cpu); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getMemoryCapacity() const; + void setMemoryCapacity(long memoryCapacity); + int getInstanceCount() const; + void setInstanceCount(int instanceCount); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterSpecification_; + int cpu_; + std::string clusterId_; + std::string instanceId_; + long memoryCapacity_; + int instanceCount_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_SCALINGCLUSTERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/ScalingClusterResult.h b/mse/include/alibabacloud/mse/model/ScalingClusterResult.h new file mode 100644 index 000000000..9656591b6 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/ScalingClusterResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_SCALINGCLUSTERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_SCALINGCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT ScalingClusterResult : public ServiceResult + { + public: + + + ScalingClusterResult(); + explicit ScalingClusterResult(const std::string &payload); + ~ScalingClusterResult(); + std::string getMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_SCALINGCLUSTERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/SelectGatewaySlbRequest.h b/mse/include/alibabacloud/mse/model/SelectGatewaySlbRequest.h new file mode 100644 index 000000000..e08d6bf29 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/SelectGatewaySlbRequest.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_SELECTGATEWAYSLBREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_SELECTGATEWAYSLBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT SelectGatewaySlbRequest : public RpcServiceRequest { +public: + SelectGatewaySlbRequest(); + ~SelectGatewaySlbRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getType() const; + void setType(const std::string &type); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string type_; + std::string name_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_SELECTGATEWAYSLBREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/SelectGatewaySlbResult.h b/mse/include/alibabacloud/mse/model/SelectGatewaySlbResult.h new file mode 100644 index 000000000..3246cc509 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/SelectGatewaySlbResult.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_SELECTGATEWAYSLBRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_SELECTGATEWAYSLBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT SelectGatewaySlbResult : public ServiceResult + { + public: + struct Sources + { + std::string slbId; + std::string slbName; + }; + + + SelectGatewaySlbResult(); + explicit SelectGatewaySlbResult(const std::string &payload); + ~SelectGatewaySlbResult(); + 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_SELECTGATEWAYSLBRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateAclRequest.h b/mse/include/alibabacloud/mse/model/UpdateAclRequest.h new file mode 100644 index 000000000..c1cd76e7b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateAclRequest.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_UPDATEACLREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateAclRequest : public RpcServiceRequest { +public: + UpdateAclRequest(); + ~UpdateAclRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAclEntryList() const; + void setAclEntryList(const std::string &aclEntryList); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clusterId_; + std::string aclEntryList_; + std::string instanceId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEACLREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateAclResult.h b/mse/include/alibabacloud/mse/model/UpdateAclResult.h new file mode 100644 index 000000000..e09743d3f --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateAclResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEACLRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateAclResult : public ServiceResult + { + public: + + + UpdateAclResult(); + explicit UpdateAclResult(const std::string &payload); + ~UpdateAclResult(); + std::string getMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEACLRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateBlackWhiteListRequest.h b/mse/include/alibabacloud/mse/model/UpdateBlackWhiteListRequest.h new file mode 100644 index 000000000..d0c34f4cc --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateBlackWhiteListRequest.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_UPDATEBLACKWHITELISTREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEBLACKWHITELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateBlackWhiteListRequest : public RpcServiceRequest { +public: + UpdateBlackWhiteListRequest(); + ~UpdateBlackWhiteListRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getType() const; + void setType(const std::string &type); + std::string getContent() const; + void setContent(const std::string &content); + long getId() const; + void setId(long id); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string gatewayUniqueId_; + std::string type_; + std::string content_; + long id_; + std::string resourceType_; + std::string acceptLanguage_; + std::string status_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEBLACKWHITELISTREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateBlackWhiteListResult.h b/mse/include/alibabacloud/mse/model/UpdateBlackWhiteListResult.h new file mode 100644 index 000000000..83abf48f5 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateBlackWhiteListResult.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_UPDATEBLACKWHITELISTRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEBLACKWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateBlackWhiteListResult : public ServiceResult + { + public: + + + UpdateBlackWhiteListResult(); + explicit UpdateBlackWhiteListResult(const std::string &payload); + ~UpdateBlackWhiteListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEBLACKWHITELISTRESULT_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 new file mode 100644 index 000000000..6f9f2a2b5 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateClusterRequest.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_UPDATECLUSTERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateClusterRequest : public RpcServiceRequest { +public: + UpdateClusterRequest(); + ~UpdateClusterRequest(); + 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 clusterAliasName_; + std::string clusterId_; + std::string instanceId_; + std::string requestPars_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATECLUSTERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateClusterResult.h b/mse/include/alibabacloud/mse/model/UpdateClusterResult.h new file mode 100644 index 000000000..2b6fcc4d0 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateClusterResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATECLUSTERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateClusterResult : public ServiceResult + { + public: + + + UpdateClusterResult(); + explicit UpdateClusterResult(const std::string &payload); + ~UpdateClusterResult(); + std::string getMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATECLUSTERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateConfigRequest.h b/mse/include/alibabacloud/mse/model/UpdateConfigRequest.h new file mode 100644 index 000000000..c8c9f3fec --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateConfigRequest.h @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATECONFIGREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateConfigRequest : public RpcServiceRequest { +public: + UpdateConfigRequest(); + ~UpdateConfigRequest(); + std::string getOpenSuperAcl() const; + void setOpenSuperAcl(const std::string &openSuperAcl); + bool getConfigAuthEnabled() const; + void setConfigAuthEnabled(bool configAuthEnabled); + std::string getPassWord() const; + void setPassWord(const std::string &passWord); + 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); + std::string getConfigType() const; + void setConfigType(const std::string &configType); + 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); + std::string getAutopurgePurgeInterval() const; + void setAutopurgePurgeInterval(const std::string &autopurgePurgeInterval); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getInitLimit() const; + void setInitLimit(const std::string &initLimit); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string openSuperAcl_; + bool configAuthEnabled_; + std::string passWord_; + std::string minSessionTimeout_; + std::string maxClientCnxns_; + std::string requestPars_; + std::string juteMaxbuffer_; + std::string configType_; + std::string autopurgeSnapRetainCount_; + std::string maxSessionTimeout_; + bool configSecretEnabled_; + bool mCPEnabled_; + std::string tickTime_; + std::string clusterId_; + std::string syncLimit_; + std::string instanceId_; + std::string autopurgePurgeInterval_; + std::string acceptLanguage_; + std::string initLimit_; + std::string userName_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATECONFIGREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateConfigResult.h b/mse/include/alibabacloud/mse/model/UpdateConfigResult.h new file mode 100644 index 000000000..a92bf735d --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateConfigResult.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_UPDATECONFIGRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateConfigResult : public ServiceResult + { + public: + + + UpdateConfigResult(); + explicit UpdateConfigResult(const std::string &payload); + ~UpdateConfigResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATECONFIGRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateEngineNamespaceRequest.h b/mse/include/alibabacloud/mse/model/UpdateEngineNamespaceRequest.h new file mode 100644 index 000000000..be1eb7861 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateEngineNamespaceRequest.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_UPDATEENGINENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEENGINENAMESPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateEngineNamespaceRequest : public RpcServiceRequest { +public: + UpdateEngineNamespaceRequest(); + ~UpdateEngineNamespaceRequest(); + 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 clusterId_; + std::string instanceId_; + int serviceCount_; + std::string name_; + std::string acceptLanguage_; + std::string id_; + std::string desc_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEENGINENAMESPACEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateEngineNamespaceResult.h b/mse/include/alibabacloud/mse/model/UpdateEngineNamespaceResult.h new file mode 100644 index 000000000..f756c21d8 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateEngineNamespaceResult.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_UPDATEENGINENAMESPACERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEENGINENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateEngineNamespaceResult : public ServiceResult + { + public: + struct Data + { + int type; + int quota; + int configCount; + std::string namespaceShowName; + std::string _namespace; + std::string namespaceDesc; + }; + + + UpdateEngineNamespaceResult(); + explicit UpdateEngineNamespaceResult(const std::string &payload); + ~UpdateEngineNamespaceResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEENGINENAMESPACERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayDomainRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayDomainRequest.h new file mode 100644 index 000000000..0fcaf14b6 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayDomainRequest.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_UPDATEGATEWAYDOMAINREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateGatewayDomainRequest : public RpcServiceRequest { +public: + UpdateGatewayDomainRequest(); + ~UpdateGatewayDomainRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + bool getMustHttps() const; + void setMustHttps(bool mustHttps); + long getId() const; + void setId(long id); + std::string getCertIdentifier() const; + void setCertIdentifier(const std::string &certIdentifier); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string protocol_; + bool mustHttps_; + long id_; + std::string certIdentifier_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYDOMAINREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayDomainResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayDomainResult.h new file mode 100644 index 000000000..38256b380 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayDomainResult.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_UPDATEGATEWAYDOMAINRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateGatewayDomainResult : public ServiceResult + { + public: + + + UpdateGatewayDomainResult(); + explicit UpdateGatewayDomainResult(const std::string &payload); + ~UpdateGatewayDomainResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYDOMAINRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayNameRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayNameRequest.h new file mode 100644 index 000000000..0550a756f --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayNameRequest.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_UPDATEGATEWAYNAMEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYNAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateGatewayNameRequest : public RpcServiceRequest { +public: + UpdateGatewayNameRequest(); + ~UpdateGatewayNameRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + std::string name_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYNAMEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayNameResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayNameResult.h new file mode 100644 index 000000000..e675f3c51 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayNameResult.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_UPDATEGATEWAYNAMERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateGatewayNameResult : public ServiceResult + { + public: + + + UpdateGatewayNameResult(); + explicit UpdateGatewayNameResult(const std::string &payload); + ~UpdateGatewayNameResult(); + 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_UPDATEGATEWAYNAMERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayOptionRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayOptionRequest.h new file mode 100644 index 000000000..a7eb86356 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayOptionRequest.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_UPDATEGATEWAYOPTIONREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYOPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateGatewayOptionRequest : public RpcServiceRequest { +public: + struct GatewayOption { + struct LogConfigDetails { + std::string projectName; + std::string logStoreName; + bool logEnabled; + }; + LogConfigDetails logConfigDetails; + struct TraceDetails { + bool traceEnabled; + long sample; + }; + TraceDetails traceDetails; + }; + UpdateGatewayOptionRequest(); + ~UpdateGatewayOptionRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + GatewayOption getGatewayOption() const; + void setGatewayOption(const GatewayOption &gatewayOption); + long getGatewayId() const; + void setGatewayId(long gatewayId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + GatewayOption gatewayOption_; + long gatewayId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYOPTIONREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayOptionResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayOptionResult.h new file mode 100644 index 000000000..847d2017b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayOptionResult.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_UPDATEGATEWAYOPTIONRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYOPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateGatewayOptionResult : public ServiceResult + { + public: + struct Data + { + struct TraceDetails + { + long sample; + bool traceEnabled; + }; + struct LogConfigDetails + { + std::string logStoreName; + std::string projectName; + bool logEnabled; + }; + TraceDetails traceDetails; + LogConfigDetails logConfigDetails; + }; + + + UpdateGatewayOptionResult(); + explicit UpdateGatewayOptionResult(const std::string &payload); + ~UpdateGatewayOptionResult(); + 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_UPDATEGATEWAYOPTIONRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayRouteHTTPRewriteRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteHTTPRewriteRequest.h new file mode 100644 index 000000000..20bf9668a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteHTTPRewriteRequest.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_UPDATEGATEWAYROUTEHTTPREWRITEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEHTTPREWRITEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateGatewayRouteHTTPRewriteRequest : public RpcServiceRequest { +public: + UpdateGatewayRouteHTTPRewriteRequest(); + ~UpdateGatewayRouteHTTPRewriteRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getHttpRewriteJSON() const; + void setHttpRewriteJSON(const std::string &httpRewriteJSON); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + long getId() const; + void setId(long id); + long getGatewayId() const; + void setGatewayId(long gatewayId); + +private: + std::string gatewayUniqueId_; + std::string httpRewriteJSON_; + std::string acceptLanguage_; + long id_; + long gatewayId_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEHTTPREWRITEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayRouteHTTPRewriteResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteHTTPRewriteResult.h new file mode 100644 index 000000000..675f42be4 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayRouteHTTPRewriteResult.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_UPDATEGATEWAYROUTEHTTPREWRITERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEHTTPREWRITERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateGatewayRouteHTTPRewriteResult : public ServiceResult + { + public: + + + UpdateGatewayRouteHTTPRewriteResult(); + explicit UpdateGatewayRouteHTTPRewriteResult(const std::string &payload); + ~UpdateGatewayRouteHTTPRewriteResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYROUTEHTTPREWRITERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayServiceVersionRequest.h b/mse/include/alibabacloud/mse/model/UpdateGatewayServiceVersionRequest.h new file mode 100644 index 000000000..a443bcba4 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayServiceVersionRequest.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_UPDATEGATEWAYSERVICEVERSIONREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYSERVICEVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateGatewayServiceVersionRequest : public RpcServiceRequest { +public: + UpdateGatewayServiceVersionRequest(); + ~UpdateGatewayServiceVersionRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + std::string getServiceVersion() const; + void setServiceVersion(const std::string &serviceVersion); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + long getServiceId() const; + void setServiceId(long serviceId); + +private: + std::string gatewayUniqueId_; + std::string serviceVersion_; + std::string acceptLanguage_; + long serviceId_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYSERVICEVERSIONREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateGatewayServiceVersionResult.h b/mse/include/alibabacloud/mse/model/UpdateGatewayServiceVersionResult.h new file mode 100644 index 000000000..9530d4800 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateGatewayServiceVersionResult.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_UPDATEGATEWAYSERVICEVERSIONRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYSERVICEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateGatewayServiceVersionResult : public ServiceResult + { + public: + + + UpdateGatewayServiceVersionResult(); + explicit UpdateGatewayServiceVersionResult(const std::string &payload); + ~UpdateGatewayServiceVersionResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEGATEWAYSERVICEVERSIONRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateImageRequest.h b/mse/include/alibabacloud/mse/model/UpdateImageRequest.h new file mode 100644 index 000000000..d07d3b3c0 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateImageRequest.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_UPDATEIMAGEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateImageRequest : public RpcServiceRequest { +public: + UpdateImageRequest(); + ~UpdateImageRequest(); + 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 clusterId_; + std::string acceptLanguage_; + std::string versionCode_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEIMAGEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateImageResult.h b/mse/include/alibabacloud/mse/model/UpdateImageResult.h new file mode 100644 index 000000000..2e06a469c --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateImageResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEIMAGERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateImageResult : public ServiceResult + { + public: + + + UpdateImageResult(); + explicit UpdateImageResult(const std::string &payload); + ~UpdateImageResult(); + std::string getMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEIMAGERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateNacosClusterRequest.h b/mse/include/alibabacloud/mse/model/UpdateNacosClusterRequest.h new file mode 100644 index 000000000..4865f0437 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateNacosClusterRequest.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_UPDATENACOSCLUSTERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATENACOSCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateNacosClusterRequest : public RpcServiceRequest { +public: + UpdateNacosClusterRequest(); + ~UpdateNacosClusterRequest(); + std::string getClusterName() const; + void setClusterName(const std::string &clusterName); + int getCheckPort() const; + void setCheckPort(int checkPort); + 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); + +private: + std::string clusterName_; + int checkPort_; + std::string groupName_; + std::string instanceId_; + std::string namespaceId_; + std::string healthChecker_; + std::string acceptLanguage_; + std::string serviceName_; + bool useInstancePortForCheck_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATENACOSCLUSTERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateNacosClusterResult.h b/mse/include/alibabacloud/mse/model/UpdateNacosClusterResult.h new file mode 100644 index 000000000..da2509ba5 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateNacosClusterResult.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_UPDATENACOSCLUSTERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATENACOSCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateNacosClusterResult : public ServiceResult + { + public: + + + UpdateNacosClusterResult(); + explicit UpdateNacosClusterResult(const std::string &payload); + ~UpdateNacosClusterResult(); + 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_UPDATENACOSCLUSTERRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateNacosConfigRequest.h b/mse/include/alibabacloud/mse/model/UpdateNacosConfigRequest.h new file mode 100644 index 000000000..4378c56c7 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateNacosConfigRequest.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_UPDATENACOSCONFIGREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATENACOSCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateNacosConfigRequest : public RpcServiceRequest { +public: + UpdateNacosConfigRequest(); + ~UpdateNacosConfigRequest(); + std::string getEncryptedDataKey() const; + 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; + void setNamespaceId(const std::string &namespaceId); + std::string getGroup() const; + void setGroup(const std::string &group); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getBetaIps() const; + void setBetaIps(const std::string &betaIps); + 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 getDesc() const; + void setDesc(const std::string &desc); + std::string getMd5() const; + void setMd5(const std::string &md5); + +private: + 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 dataId_; + std::string acceptLanguage_; + std::string desc_; + std::string md5_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATENACOSCONFIGREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateNacosConfigResult.h b/mse/include/alibabacloud/mse/model/UpdateNacosConfigResult.h new file mode 100644 index 000000000..6243cc36a --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateNacosConfigResult.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_UPDATENACOSCONFIGRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATENACOSCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateNacosConfigResult : public ServiceResult + { + public: + + + UpdateNacosConfigResult(); + explicit UpdateNacosConfigResult(const std::string &payload); + ~UpdateNacosConfigResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATENACOSCONFIGRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateNacosInstanceRequest.h b/mse/include/alibabacloud/mse/model/UpdateNacosInstanceRequest.h new file mode 100644 index 000000000..6538126f9 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateNacosInstanceRequest.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_UPDATENACOSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATENACOSINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateNacosInstanceRequest : public RpcServiceRequest { +public: + UpdateNacosInstanceRequest(); + ~UpdateNacosInstanceRequest(); + std::string getMetadata() const; + void setMetadata(const std::string &metadata); + std::string getClusterName() const; + 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; + void setWeight(const std::string &weight); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPort() const; + void setPort(int port); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +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_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATENACOSINSTANCEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateNacosInstanceResult.h b/mse/include/alibabacloud/mse/model/UpdateNacosInstanceResult.h new file mode 100644 index 000000000..85131c843 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateNacosInstanceResult.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_UPDATENACOSINSTANCERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATENACOSINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateNacosInstanceResult : public ServiceResult + { + public: + + + UpdateNacosInstanceResult(); + explicit UpdateNacosInstanceResult(const std::string &payload); + ~UpdateNacosInstanceResult(); + 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_UPDATENACOSINSTANCERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateNacosServiceRequest.h b/mse/include/alibabacloud/mse/model/UpdateNacosServiceRequest.h new file mode 100644 index 000000000..13bd6ae55 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateNacosServiceRequest.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_UPDATENACOSSERVICEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATENACOSSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateNacosServiceRequest : public RpcServiceRequest { +public: + UpdateNacosServiceRequest(); + ~UpdateNacosServiceRequest(); + 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 clusterId_; + std::string groupName_; + std::string instanceId_; + std::string namespaceId_; + std::string acceptLanguage_; + std::string serviceName_; + std::string protectThreshold_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATENACOSSERVICEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateNacosServiceResult.h b/mse/include/alibabacloud/mse/model/UpdateNacosServiceResult.h new file mode 100644 index 000000000..0d368719b --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateNacosServiceResult.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_UPDATENACOSSERVICERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATENACOSSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateNacosServiceResult : public ServiceResult + { + public: + + + UpdateNacosServiceResult(); + explicit UpdateNacosServiceResult(const std::string &payload); + ~UpdateNacosServiceResult(); + 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_UPDATENACOSSERVICERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateSSLCertRequest.h b/mse/include/alibabacloud/mse/model/UpdateSSLCertRequest.h new file mode 100644 index 000000000..c25b031cf --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateSSLCertRequest.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_UPDATESSLCERTREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATESSLCERTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateSSLCertRequest : public RpcServiceRequest { +public: + UpdateSSLCertRequest(); + ~UpdateSSLCertRequest(); + std::string getGatewayUniqueId() const; + void setGatewayUniqueId(const std::string &gatewayUniqueId); + long getDomainId() const; + void setDomainId(long domainId); + std::string getCertIdentifier() const; + void setCertIdentifier(const std::string &certIdentifier); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string gatewayUniqueId_; + long domainId_; + std::string certIdentifier_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATESSLCERTREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateSSLCertResult.h b/mse/include/alibabacloud/mse/model/UpdateSSLCertResult.h new file mode 100644 index 000000000..600cd7ffb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateSSLCertResult.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_UPDATESSLCERTRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATESSLCERTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateSSLCertResult : public ServiceResult + { + public: + + + UpdateSSLCertResult(); + explicit UpdateSSLCertResult(const std::string &payload); + ~UpdateSSLCertResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + bool getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + bool data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATESSLCERTRESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpdateZnodeRequest.h b/mse/include/alibabacloud/mse/model/UpdateZnodeRequest.h new file mode 100644 index 000000000..8052551d1 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateZnodeRequest.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_UPDATEZNODEREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEZNODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpdateZnodeRequest : public RpcServiceRequest { +public: + UpdateZnodeRequest(); + ~UpdateZnodeRequest(); + 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string data_; + std::string clusterId_; + std::string path_; + std::string requestPars_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEZNODEREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpdateZnodeResult.h b/mse/include/alibabacloud/mse/model/UpdateZnodeResult.h new file mode 100644 index 000000000..533f018fb --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpdateZnodeResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSE_MODEL_UPDATEZNODERESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPDATEZNODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpdateZnodeResult : public ServiceResult + { + public: + + + UpdateZnodeResult(); + explicit UpdateZnodeResult(const std::string &payload); + ~UpdateZnodeResult(); + std::string getMessage()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPDATEZNODERESULT_H_ \ No newline at end of file diff --git a/mse/include/alibabacloud/mse/model/UpgradeClusterRequest.h b/mse/include/alibabacloud/mse/model/UpgradeClusterRequest.h new file mode 100644 index 000000000..0a0c41337 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpgradeClusterRequest.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_UPGRADECLUSTERREQUEST_H_ +#define ALIBABACLOUD_MSE_MODEL_UPGRADECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mse { +namespace Model { +class ALIBABACLOUD_MSE_EXPORT UpgradeClusterRequest : public RpcServiceRequest { +public: + UpgradeClusterRequest(); + ~UpgradeClusterRequest(); + std::string getUpgradeVersion() const; + void setUpgradeVersion(const std::string &upgradeVersion); + 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 upgradeVersion_; + std::string instanceId_; + std::string requestPars_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Mse +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSE_MODEL_UPGRADECLUSTERREQUEST_H_ diff --git a/mse/include/alibabacloud/mse/model/UpgradeClusterResult.h b/mse/include/alibabacloud/mse/model/UpgradeClusterResult.h new file mode 100644 index 000000000..e6a1fdc51 --- /dev/null +++ b/mse/include/alibabacloud/mse/model/UpgradeClusterResult.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_UPGRADECLUSTERRESULT_H_ +#define ALIBABACLOUD_MSE_MODEL_UPGRADECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mse + { + namespace Model + { + class ALIBABACLOUD_MSE_EXPORT UpgradeClusterResult : public ServiceResult + { + public: + + + UpgradeClusterResult(); + explicit UpgradeClusterResult(const std::string &payload); + ~UpgradeClusterResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSE_MODEL_UPGRADECLUSTERRESULT_H_ \ No newline at end of file diff --git a/mse/src/MseClient.cc b/mse/src/MseClient.cc new file mode 100644 index 000000000..119107e4b --- /dev/null +++ b/mse/src/MseClient.cc @@ -0,0 +1,4013 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +namespace +{ + const std::string SERVICE_NAME = "mse"; +} + +MseClient::MseClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "mse"); +} + +MseClient::MseClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "mse"); +} + +MseClient::MseClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "mse"); +} + +MseClient::~MseClient() +{} + +MseClient::AddAuthResourceOutcome MseClient::addAuthResource(const AddAuthResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddAuthResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddAuthResourceOutcome(AddAuthResourceResult(outcome.result())); + else + return AddAuthResourceOutcome(outcome.error()); +} + +void MseClient::addAuthResourceAsync(const AddAuthResourceRequest& request, const AddAuthResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addAuthResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddAuthResourceOutcomeCallable MseClient::addAuthResourceCallable(const AddAuthResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addAuthResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::AddBlackWhiteListOutcome MseClient::addBlackWhiteList(const AddBlackWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddBlackWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddBlackWhiteListOutcome(AddBlackWhiteListResult(outcome.result())); + else + return AddBlackWhiteListOutcome(outcome.error()); +} + +void MseClient::addBlackWhiteListAsync(const AddBlackWhiteListRequest& request, const AddBlackWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addBlackWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddBlackWhiteListOutcomeCallable MseClient::addBlackWhiteListCallable(const AddBlackWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addBlackWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::AddGatewayOutcome MseClient::addGateway(const AddGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddGatewayOutcome(AddGatewayResult(outcome.result())); + else + return AddGatewayOutcome(outcome.error()); +} + +void MseClient::addGatewayAsync(const AddGatewayRequest& request, const AddGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddGatewayOutcomeCallable MseClient::addGatewayCallable(const AddGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::AddGatewayDomainOutcome MseClient::addGatewayDomain(const AddGatewayDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddGatewayDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddGatewayDomainOutcome(AddGatewayDomainResult(outcome.result())); + else + return AddGatewayDomainOutcome(outcome.error()); +} + +void MseClient::addGatewayDomainAsync(const AddGatewayDomainRequest& request, const AddGatewayDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addGatewayDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddGatewayDomainOutcomeCallable MseClient::addGatewayDomainCallable(const AddGatewayDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addGatewayDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::AddGatewayServiceVersionOutcome MseClient::addGatewayServiceVersion(const AddGatewayServiceVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddGatewayServiceVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddGatewayServiceVersionOutcome(AddGatewayServiceVersionResult(outcome.result())); + else + return AddGatewayServiceVersionOutcome(outcome.error()); +} + +void MseClient::addGatewayServiceVersionAsync(const AddGatewayServiceVersionRequest& request, const AddGatewayServiceVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addGatewayServiceVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddGatewayServiceVersionOutcomeCallable MseClient::addGatewayServiceVersionCallable(const AddGatewayServiceVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addGatewayServiceVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::AddGatewaySlbOutcome MseClient::addGatewaySlb(const AddGatewaySlbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddGatewaySlbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddGatewaySlbOutcome(AddGatewaySlbResult(outcome.result())); + else + return AddGatewaySlbOutcome(outcome.error()); +} + +void MseClient::addGatewaySlbAsync(const AddGatewaySlbRequest& request, const AddGatewaySlbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addGatewaySlb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddGatewaySlbOutcomeCallable MseClient::addGatewaySlbCallable(const AddGatewaySlbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addGatewaySlb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::AddMockRuleOutcome MseClient::addMockRule(const AddMockRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddMockRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddMockRuleOutcome(AddMockRuleResult(outcome.result())); + else + return AddMockRuleOutcome(outcome.error()); +} + +void MseClient::addMockRuleAsync(const AddMockRuleRequest& request, const AddMockRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addMockRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddMockRuleOutcomeCallable MseClient::addMockRuleCallable(const AddMockRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addMockRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::AddSSLCertOutcome MseClient::addSSLCert(const AddSSLCertRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddSSLCertOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddSSLCertOutcome(AddSSLCertResult(outcome.result())); + else + return AddSSLCertOutcome(outcome.error()); +} + +void MseClient::addSSLCertAsync(const AddSSLCertRequest& request, const AddSSLCertAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSSLCert(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddSSLCertOutcomeCallable MseClient::addSSLCertCallable(const AddSSLCertRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSSLCert(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::AddServiceSourceOutcome MseClient::addServiceSource(const AddServiceSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddServiceSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddServiceSourceOutcome(AddServiceSourceResult(outcome.result())); + else + return AddServiceSourceOutcome(outcome.error()); +} + +void MseClient::addServiceSourceAsync(const AddServiceSourceRequest& request, const AddServiceSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addServiceSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::AddServiceSourceOutcomeCallable MseClient::addServiceSourceCallable(const AddServiceSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addServiceSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::CloneNacosConfigOutcome MseClient::cloneNacosConfig(const CloneNacosConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CloneNacosConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CloneNacosConfigOutcome(CloneNacosConfigResult(outcome.result())); + else + return CloneNacosConfigOutcome(outcome.error()); +} + +void MseClient::cloneNacosConfigAsync(const CloneNacosConfigRequest& request, const CloneNacosConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cloneNacosConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::CloneNacosConfigOutcomeCallable MseClient::cloneNacosConfigCallable(const CloneNacosConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cloneNacosConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::CreateAlarmRuleOutcome MseClient::createAlarmRule(const CreateAlarmRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAlarmRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAlarmRuleOutcome(CreateAlarmRuleResult(outcome.result())); + else + return CreateAlarmRuleOutcome(outcome.error()); +} + +void MseClient::createAlarmRuleAsync(const CreateAlarmRuleRequest& request, const CreateAlarmRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAlarmRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::CreateAlarmRuleOutcomeCallable MseClient::createAlarmRuleCallable(const CreateAlarmRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAlarmRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::CreateApplicationOutcome MseClient::createApplication(const CreateApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateApplicationOutcome(CreateApplicationResult(outcome.result())); + else + return CreateApplicationOutcome(outcome.error()); +} + +void MseClient::createApplicationAsync(const CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::CreateApplicationOutcomeCallable MseClient::createApplicationCallable(const CreateApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::CreateClusterOutcome MseClient::createCluster(const CreateClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateClusterOutcome(CreateClusterResult(outcome.result())); + else + return CreateClusterOutcome(outcome.error()); +} + +void MseClient::createClusterAsync(const CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::CreateClusterOutcomeCallable MseClient::createClusterCallable(const CreateClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::CreateEngineNamespaceOutcome MseClient::createEngineNamespace(const CreateEngineNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEngineNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEngineNamespaceOutcome(CreateEngineNamespaceResult(outcome.result())); + else + return CreateEngineNamespaceOutcome(outcome.error()); +} + +void MseClient::createEngineNamespaceAsync(const CreateEngineNamespaceRequest& request, const CreateEngineNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEngineNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::CreateEngineNamespaceOutcomeCallable MseClient::createEngineNamespaceCallable(const CreateEngineNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEngineNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::CreateNacosConfigOutcome MseClient::createNacosConfig(const CreateNacosConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNacosConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNacosConfigOutcome(CreateNacosConfigResult(outcome.result())); + else + return CreateNacosConfigOutcome(outcome.error()); +} + +void MseClient::createNacosConfigAsync(const CreateNacosConfigRequest& request, const CreateNacosConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNacosConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::CreateNacosConfigOutcomeCallable MseClient::createNacosConfigCallable(const CreateNacosConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNacosConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::CreateNacosInstanceOutcome MseClient::createNacosInstance(const CreateNacosInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNacosInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNacosInstanceOutcome(CreateNacosInstanceResult(outcome.result())); + else + return CreateNacosInstanceOutcome(outcome.error()); +} + +void MseClient::createNacosInstanceAsync(const CreateNacosInstanceRequest& request, const CreateNacosInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNacosInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::CreateNacosInstanceOutcomeCallable MseClient::createNacosInstanceCallable(const CreateNacosInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNacosInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::CreateNacosServiceOutcome MseClient::createNacosService(const CreateNacosServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNacosServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNacosServiceOutcome(CreateNacosServiceResult(outcome.result())); + else + return CreateNacosServiceOutcome(outcome.error()); +} + +void MseClient::createNacosServiceAsync(const CreateNacosServiceRequest& request, const CreateNacosServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNacosService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::CreateNacosServiceOutcomeCallable MseClient::createNacosServiceCallable(const CreateNacosServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNacosService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::CreateZnodeOutcome MseClient::createZnode(const CreateZnodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateZnodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateZnodeOutcome(CreateZnodeResult(outcome.result())); + else + return CreateZnodeOutcome(outcome.error()); +} + +void MseClient::createZnodeAsync(const CreateZnodeRequest& request, const CreateZnodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createZnode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::CreateZnodeOutcomeCallable MseClient::createZnodeCallable(const CreateZnodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createZnode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteAlarmRuleOutcome MseClient::deleteAlarmRule(const DeleteAlarmRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAlarmRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAlarmRuleOutcome(DeleteAlarmRuleResult(outcome.result())); + else + return DeleteAlarmRuleOutcome(outcome.error()); +} + +void MseClient::deleteAlarmRuleAsync(const DeleteAlarmRuleRequest& request, const DeleteAlarmRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAlarmRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteAlarmRuleOutcomeCallable MseClient::deleteAlarmRuleCallable(const DeleteAlarmRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAlarmRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteAuthResourceOutcome MseClient::deleteAuthResource(const DeleteAuthResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAuthResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAuthResourceOutcome(DeleteAuthResourceResult(outcome.result())); + else + return DeleteAuthResourceOutcome(outcome.error()); +} + +void MseClient::deleteAuthResourceAsync(const DeleteAuthResourceRequest& request, const DeleteAuthResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAuthResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteAuthResourceOutcomeCallable MseClient::deleteAuthResourceCallable(const DeleteAuthResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAuthResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteClusterOutcome MseClient::deleteCluster(const DeleteClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteClusterOutcome(DeleteClusterResult(outcome.result())); + else + return DeleteClusterOutcome(outcome.error()); +} + +void MseClient::deleteClusterAsync(const DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteClusterOutcomeCallable MseClient::deleteClusterCallable(const DeleteClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteEngineNamespaceOutcome MseClient::deleteEngineNamespace(const DeleteEngineNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteEngineNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteEngineNamespaceOutcome(DeleteEngineNamespaceResult(outcome.result())); + else + return DeleteEngineNamespaceOutcome(outcome.error()); +} + +void MseClient::deleteEngineNamespaceAsync(const DeleteEngineNamespaceRequest& request, const DeleteEngineNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteEngineNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteEngineNamespaceOutcomeCallable MseClient::deleteEngineNamespaceCallable(const DeleteEngineNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteEngineNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteGatewayOutcome MseClient::deleteGateway(const DeleteGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewayOutcome(DeleteGatewayResult(outcome.result())); + else + return DeleteGatewayOutcome(outcome.error()); +} + +void MseClient::deleteGatewayAsync(const DeleteGatewayRequest& request, const DeleteGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteGatewayOutcomeCallable MseClient::deleteGatewayCallable(const DeleteGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteGatewayDomainOutcome MseClient::deleteGatewayDomain(const DeleteGatewayDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewayDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewayDomainOutcome(DeleteGatewayDomainResult(outcome.result())); + else + return DeleteGatewayDomainOutcome(outcome.error()); +} + +void MseClient::deleteGatewayDomainAsync(const DeleteGatewayDomainRequest& request, const DeleteGatewayDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGatewayDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteGatewayDomainOutcomeCallable MseClient::deleteGatewayDomainCallable(const DeleteGatewayDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGatewayDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteGatewayServiceVersionOutcome MseClient::deleteGatewayServiceVersion(const DeleteGatewayServiceVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewayServiceVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewayServiceVersionOutcome(DeleteGatewayServiceVersionResult(outcome.result())); + else + return DeleteGatewayServiceVersionOutcome(outcome.error()); +} + +void MseClient::deleteGatewayServiceVersionAsync(const DeleteGatewayServiceVersionRequest& request, const DeleteGatewayServiceVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGatewayServiceVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteGatewayServiceVersionOutcomeCallable MseClient::deleteGatewayServiceVersionCallable(const DeleteGatewayServiceVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGatewayServiceVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteGatewaySlbOutcome MseClient::deleteGatewaySlb(const DeleteGatewaySlbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewaySlbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewaySlbOutcome(DeleteGatewaySlbResult(outcome.result())); + else + return DeleteGatewaySlbOutcome(outcome.error()); +} + +void MseClient::deleteGatewaySlbAsync(const DeleteGatewaySlbRequest& request, const DeleteGatewaySlbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGatewaySlb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteGatewaySlbOutcomeCallable MseClient::deleteGatewaySlbCallable(const DeleteGatewaySlbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGatewaySlb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteNacosConfigOutcome MseClient::deleteNacosConfig(const DeleteNacosConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNacosConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNacosConfigOutcome(DeleteNacosConfigResult(outcome.result())); + else + return DeleteNacosConfigOutcome(outcome.error()); +} + +void MseClient::deleteNacosConfigAsync(const DeleteNacosConfigRequest& request, const DeleteNacosConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNacosConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteNacosConfigOutcomeCallable MseClient::deleteNacosConfigCallable(const DeleteNacosConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNacosConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteNacosConfigsOutcome MseClient::deleteNacosConfigs(const DeleteNacosConfigsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNacosConfigsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNacosConfigsOutcome(DeleteNacosConfigsResult(outcome.result())); + else + return DeleteNacosConfigsOutcome(outcome.error()); +} + +void MseClient::deleteNacosConfigsAsync(const DeleteNacosConfigsRequest& request, const DeleteNacosConfigsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNacosConfigs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteNacosConfigsOutcomeCallable MseClient::deleteNacosConfigsCallable(const DeleteNacosConfigsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNacosConfigs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteNacosServiceOutcome MseClient::deleteNacosService(const DeleteNacosServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNacosServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNacosServiceOutcome(DeleteNacosServiceResult(outcome.result())); + else + return DeleteNacosServiceOutcome(outcome.error()); +} + +void MseClient::deleteNacosServiceAsync(const DeleteNacosServiceRequest& request, const DeleteNacosServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNacosService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteNacosServiceOutcomeCallable MseClient::deleteNacosServiceCallable(const DeleteNacosServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNacosService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteServiceSourceOutcome MseClient::deleteServiceSource(const DeleteServiceSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteServiceSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteServiceSourceOutcome(DeleteServiceSourceResult(outcome.result())); + else + return DeleteServiceSourceOutcome(outcome.error()); +} + +void MseClient::deleteServiceSourceAsync(const DeleteServiceSourceRequest& request, const DeleteServiceSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteServiceSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteServiceSourceOutcomeCallable MseClient::deleteServiceSourceCallable(const DeleteServiceSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteServiceSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::DeleteZnodeOutcome MseClient::deleteZnode(const DeleteZnodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteZnodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteZnodeOutcome(DeleteZnodeResult(outcome.result())); + else + return DeleteZnodeOutcome(outcome.error()); +} + +void MseClient::deleteZnodeAsync(const DeleteZnodeRequest& request, const DeleteZnodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteZnode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::DeleteZnodeOutcomeCallable MseClient::deleteZnodeCallable(const DeleteZnodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteZnode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ExportNacosConfigOutcome MseClient::exportNacosConfig(const ExportNacosConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExportNacosConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExportNacosConfigOutcome(ExportNacosConfigResult(outcome.result())); + else + return ExportNacosConfigOutcome(outcome.error()); +} + +void MseClient::exportNacosConfigAsync(const ExportNacosConfigRequest& request, const ExportNacosConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exportNacosConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ExportNacosConfigOutcomeCallable MseClient::exportNacosConfigCallable(const ExportNacosConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exportNacosConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetBlackWhiteListOutcome MseClient::getBlackWhiteList(const GetBlackWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBlackWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBlackWhiteListOutcome(GetBlackWhiteListResult(outcome.result())); + else + return GetBlackWhiteListOutcome(outcome.error()); +} + +void MseClient::getBlackWhiteListAsync(const GetBlackWhiteListRequest& request, const GetBlackWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBlackWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetBlackWhiteListOutcomeCallable MseClient::getBlackWhiteListCallable(const GetBlackWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBlackWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetEngineNamepaceOutcome MseClient::getEngineNamepace(const GetEngineNamepaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEngineNamepaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEngineNamepaceOutcome(GetEngineNamepaceResult(outcome.result())); + else + return GetEngineNamepaceOutcome(outcome.error()); +} + +void MseClient::getEngineNamepaceAsync(const GetEngineNamepaceRequest& request, const GetEngineNamepaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEngineNamepace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetEngineNamepaceOutcomeCallable MseClient::getEngineNamepaceCallable(const GetEngineNamepaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEngineNamepace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetGatewayOutcome MseClient::getGateway(const GetGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGatewayOutcome(GetGatewayResult(outcome.result())); + else + return GetGatewayOutcome(outcome.error()); +} + +void MseClient::getGatewayAsync(const GetGatewayRequest& request, const GetGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetGatewayOutcomeCallable MseClient::getGatewayCallable(const GetGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetGatewayDomainDetailOutcome MseClient::getGatewayDomainDetail(const GetGatewayDomainDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGatewayDomainDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGatewayDomainDetailOutcome(GetGatewayDomainDetailResult(outcome.result())); + else + return GetGatewayDomainDetailOutcome(outcome.error()); +} + +void MseClient::getGatewayDomainDetailAsync(const GetGatewayDomainDetailRequest& request, const GetGatewayDomainDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGatewayDomainDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetGatewayDomainDetailOutcomeCallable MseClient::getGatewayDomainDetailCallable(const GetGatewayDomainDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGatewayDomainDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetGatewayOptionOutcome MseClient::getGatewayOption(const GetGatewayOptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGatewayOptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGatewayOptionOutcome(GetGatewayOptionResult(outcome.result())); + else + return GetGatewayOptionOutcome(outcome.error()); +} + +void MseClient::getGatewayOptionAsync(const GetGatewayOptionRequest& request, const GetGatewayOptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGatewayOption(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetGatewayOptionOutcomeCallable MseClient::getGatewayOptionCallable(const GetGatewayOptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGatewayOption(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetGatewayServiceDetailOutcome MseClient::getGatewayServiceDetail(const GetGatewayServiceDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGatewayServiceDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGatewayServiceDetailOutcome(GetGatewayServiceDetailResult(outcome.result())); + else + return GetGatewayServiceDetailOutcome(outcome.error()); +} + +void MseClient::getGatewayServiceDetailAsync(const GetGatewayServiceDetailRequest& request, const GetGatewayServiceDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGatewayServiceDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetGatewayServiceDetailOutcomeCallable MseClient::getGatewayServiceDetailCallable(const GetGatewayServiceDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGatewayServiceDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetGovernanceKubernetesClusterOutcome MseClient::getGovernanceKubernetesCluster(const GetGovernanceKubernetesClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGovernanceKubernetesClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGovernanceKubernetesClusterOutcome(GetGovernanceKubernetesClusterResult(outcome.result())); + else + return GetGovernanceKubernetesClusterOutcome(outcome.error()); +} + +void MseClient::getGovernanceKubernetesClusterAsync(const GetGovernanceKubernetesClusterRequest& request, const GetGovernanceKubernetesClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGovernanceKubernetesCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetGovernanceKubernetesClusterOutcomeCallable MseClient::getGovernanceKubernetesClusterCallable(const GetGovernanceKubernetesClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGovernanceKubernetesCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetGovernanceKubernetesClusterListOutcome MseClient::getGovernanceKubernetesClusterList(const GetGovernanceKubernetesClusterListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGovernanceKubernetesClusterListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGovernanceKubernetesClusterListOutcome(GetGovernanceKubernetesClusterListResult(outcome.result())); + else + return GetGovernanceKubernetesClusterListOutcome(outcome.error()); +} + +void MseClient::getGovernanceKubernetesClusterListAsync(const GetGovernanceKubernetesClusterListRequest& request, const GetGovernanceKubernetesClusterListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGovernanceKubernetesClusterList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetGovernanceKubernetesClusterListOutcomeCallable MseClient::getGovernanceKubernetesClusterListCallable(const GetGovernanceKubernetesClusterListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGovernanceKubernetesClusterList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetImageOutcome MseClient::getImage(const GetImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetImageOutcome(GetImageResult(outcome.result())); + else + return GetImageOutcome(outcome.error()); +} + +void MseClient::getImageAsync(const GetImageRequest& request, const GetImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetImageOutcomeCallable MseClient::getImageCallable(const GetImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetImportFileUrlOutcome MseClient::getImportFileUrl(const GetImportFileUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetImportFileUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetImportFileUrlOutcome(GetImportFileUrlResult(outcome.result())); + else + return GetImportFileUrlOutcome(outcome.error()); +} + +void MseClient::getImportFileUrlAsync(const GetImportFileUrlRequest& request, const GetImportFileUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getImportFileUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetImportFileUrlOutcomeCallable MseClient::getImportFileUrlCallable(const GetImportFileUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getImportFileUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetKubernetesSourceOutcome MseClient::getKubernetesSource(const GetKubernetesSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetKubernetesSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetKubernetesSourceOutcome(GetKubernetesSourceResult(outcome.result())); + else + return GetKubernetesSourceOutcome(outcome.error()); +} + +void MseClient::getKubernetesSourceAsync(const GetKubernetesSourceRequest& request, const GetKubernetesSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getKubernetesSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetKubernetesSourceOutcomeCallable MseClient::getKubernetesSourceCallable(const GetKubernetesSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getKubernetesSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetMseFeatureSwitchOutcome MseClient::getMseFeatureSwitch(const GetMseFeatureSwitchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMseFeatureSwitchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMseFeatureSwitchOutcome(GetMseFeatureSwitchResult(outcome.result())); + else + return GetMseFeatureSwitchOutcome(outcome.error()); +} + +void MseClient::getMseFeatureSwitchAsync(const GetMseFeatureSwitchRequest& request, const GetMseFeatureSwitchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMseFeatureSwitch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetMseFeatureSwitchOutcomeCallable MseClient::getMseFeatureSwitchCallable(const GetMseFeatureSwitchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMseFeatureSwitch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetMseSourceOutcome MseClient::getMseSource(const GetMseSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMseSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMseSourceOutcome(GetMseSourceResult(outcome.result())); + else + return GetMseSourceOutcome(outcome.error()); +} + +void MseClient::getMseSourceAsync(const GetMseSourceRequest& request, const GetMseSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMseSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetMseSourceOutcomeCallable MseClient::getMseSourceCallable(const GetMseSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMseSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetNacosConfigOutcome MseClient::getNacosConfig(const GetNacosConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetNacosConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetNacosConfigOutcome(GetNacosConfigResult(outcome.result())); + else + return GetNacosConfigOutcome(outcome.error()); +} + +void MseClient::getNacosConfigAsync(const GetNacosConfigRequest& request, const GetNacosConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getNacosConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetNacosConfigOutcomeCallable MseClient::getNacosConfigCallable(const GetNacosConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getNacosConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetNacosHistoryConfigOutcome MseClient::getNacosHistoryConfig(const GetNacosHistoryConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetNacosHistoryConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetNacosHistoryConfigOutcome(GetNacosHistoryConfigResult(outcome.result())); + else + return GetNacosHistoryConfigOutcome(outcome.error()); +} + +void MseClient::getNacosHistoryConfigAsync(const GetNacosHistoryConfigRequest& request, const GetNacosHistoryConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getNacosHistoryConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetNacosHistoryConfigOutcomeCallable MseClient::getNacosHistoryConfigCallable(const GetNacosHistoryConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getNacosHistoryConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::GetOverviewOutcome MseClient::getOverview(const GetOverviewRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOverviewOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOverviewOutcome(GetOverviewResult(outcome.result())); + else + return GetOverviewOutcome(outcome.error()); +} + +void MseClient::getOverviewAsync(const GetOverviewRequest& request, const GetOverviewAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOverview(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::GetOverviewOutcomeCallable MseClient::getOverviewCallable(const GetOverviewRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOverview(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ImportNacosConfigOutcome MseClient::importNacosConfig(const ImportNacosConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ImportNacosConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportNacosConfigOutcome(ImportNacosConfigResult(outcome.result())); + else + return ImportNacosConfigOutcome(outcome.error()); +} + +void MseClient::importNacosConfigAsync(const ImportNacosConfigRequest& request, const ImportNacosConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importNacosConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ImportNacosConfigOutcomeCallable MseClient::importNacosConfigCallable(const ImportNacosConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importNacosConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ImportServicesOutcome MseClient::importServices(const ImportServicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ImportServicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportServicesOutcome(ImportServicesResult(outcome.result())); + else + return ImportServicesOutcome(outcome.error()); +} + +void MseClient::importServicesAsync(const ImportServicesRequest& request, const ImportServicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importServices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ImportServicesOutcomeCallable MseClient::importServicesCallable(const ImportServicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importServices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListAlarmContactGroupsOutcome MseClient::listAlarmContactGroups(const ListAlarmContactGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAlarmContactGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAlarmContactGroupsOutcome(ListAlarmContactGroupsResult(outcome.result())); + else + return ListAlarmContactGroupsOutcome(outcome.error()); +} + +void MseClient::listAlarmContactGroupsAsync(const ListAlarmContactGroupsRequest& request, const ListAlarmContactGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAlarmContactGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListAlarmContactGroupsOutcomeCallable MseClient::listAlarmContactGroupsCallable(const ListAlarmContactGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAlarmContactGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListAlarmHistoriesOutcome MseClient::listAlarmHistories(const ListAlarmHistoriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAlarmHistoriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAlarmHistoriesOutcome(ListAlarmHistoriesResult(outcome.result())); + else + return ListAlarmHistoriesOutcome(outcome.error()); +} + +void MseClient::listAlarmHistoriesAsync(const ListAlarmHistoriesRequest& request, const ListAlarmHistoriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAlarmHistories(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListAlarmHistoriesOutcomeCallable MseClient::listAlarmHistoriesCallable(const ListAlarmHistoriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAlarmHistories(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListAlarmItemsOutcome MseClient::listAlarmItems(const ListAlarmItemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAlarmItemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAlarmItemsOutcome(ListAlarmItemsResult(outcome.result())); + else + return ListAlarmItemsOutcome(outcome.error()); +} + +void MseClient::listAlarmItemsAsync(const ListAlarmItemsRequest& request, const ListAlarmItemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAlarmItems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListAlarmItemsOutcomeCallable MseClient::listAlarmItemsCallable(const ListAlarmItemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAlarmItems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListAlarmRulesOutcome MseClient::listAlarmRules(const ListAlarmRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAlarmRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAlarmRulesOutcome(ListAlarmRulesResult(outcome.result())); + else + return ListAlarmRulesOutcome(outcome.error()); +} + +void MseClient::listAlarmRulesAsync(const ListAlarmRulesRequest& request, const ListAlarmRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAlarmRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListAlarmRulesOutcomeCallable MseClient::listAlarmRulesCallable(const ListAlarmRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAlarmRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListAnsInstancesOutcome MseClient::listAnsInstances(const ListAnsInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAnsInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAnsInstancesOutcome(ListAnsInstancesResult(outcome.result())); + else + return ListAnsInstancesOutcome(outcome.error()); +} + +void MseClient::listAnsInstancesAsync(const ListAnsInstancesRequest& request, const ListAnsInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAnsInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListAnsInstancesOutcomeCallable MseClient::listAnsInstancesCallable(const ListAnsInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAnsInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListAnsServiceClustersOutcome MseClient::listAnsServiceClusters(const ListAnsServiceClustersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAnsServiceClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAnsServiceClustersOutcome(ListAnsServiceClustersResult(outcome.result())); + else + return ListAnsServiceClustersOutcome(outcome.error()); +} + +void MseClient::listAnsServiceClustersAsync(const ListAnsServiceClustersRequest& request, const ListAnsServiceClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAnsServiceClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListAnsServiceClustersOutcomeCallable MseClient::listAnsServiceClustersCallable(const ListAnsServiceClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAnsServiceClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListAnsServicesOutcome MseClient::listAnsServices(const ListAnsServicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAnsServicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAnsServicesOutcome(ListAnsServicesResult(outcome.result())); + else + return ListAnsServicesOutcome(outcome.error()); +} + +void MseClient::listAnsServicesAsync(const ListAnsServicesRequest& request, const ListAnsServicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAnsServices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListAnsServicesOutcomeCallable MseClient::listAnsServicesCallable(const ListAnsServicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAnsServices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListClusterConnectionTypesOutcome MseClient::listClusterConnectionTypes(const ListClusterConnectionTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterConnectionTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterConnectionTypesOutcome(ListClusterConnectionTypesResult(outcome.result())); + else + return ListClusterConnectionTypesOutcome(outcome.error()); +} + +void MseClient::listClusterConnectionTypesAsync(const ListClusterConnectionTypesRequest& request, const ListClusterConnectionTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterConnectionTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListClusterConnectionTypesOutcomeCallable MseClient::listClusterConnectionTypesCallable(const ListClusterConnectionTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterConnectionTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListClusterTypesOutcome MseClient::listClusterTypes(const ListClusterTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterTypesOutcome(ListClusterTypesResult(outcome.result())); + else + return ListClusterTypesOutcome(outcome.error()); +} + +void MseClient::listClusterTypesAsync(const ListClusterTypesRequest& request, const ListClusterTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListClusterTypesOutcomeCallable MseClient::listClusterTypesCallable(const ListClusterTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListClusterVersionsOutcome MseClient::listClusterVersions(const ListClusterVersionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterVersionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterVersionsOutcome(ListClusterVersionsResult(outcome.result())); + else + return ListClusterVersionsOutcome(outcome.error()); +} + +void MseClient::listClusterVersionsAsync(const ListClusterVersionsRequest& request, const ListClusterVersionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterVersions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListClusterVersionsOutcomeCallable MseClient::listClusterVersionsCallable(const ListClusterVersionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterVersions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListClustersOutcome MseClient::listClusters(const ListClustersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClustersOutcome(ListClustersResult(outcome.result())); + else + return ListClustersOutcome(outcome.error()); +} + +void MseClient::listClustersAsync(const ListClustersRequest& request, const ListClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListClustersOutcomeCallable MseClient::listClustersCallable(const ListClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListEngineNamespacesOutcome MseClient::listEngineNamespaces(const ListEngineNamespacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEngineNamespacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEngineNamespacesOutcome(ListEngineNamespacesResult(outcome.result())); + else + return ListEngineNamespacesOutcome(outcome.error()); +} + +void MseClient::listEngineNamespacesAsync(const ListEngineNamespacesRequest& request, const ListEngineNamespacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEngineNamespaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListEngineNamespacesOutcomeCallable MseClient::listEngineNamespacesCallable(const ListEngineNamespacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEngineNamespaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListEurekaInstancesOutcome MseClient::listEurekaInstances(const ListEurekaInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEurekaInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEurekaInstancesOutcome(ListEurekaInstancesResult(outcome.result())); + else + return ListEurekaInstancesOutcome(outcome.error()); +} + +void MseClient::listEurekaInstancesAsync(const ListEurekaInstancesRequest& request, const ListEurekaInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEurekaInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListEurekaInstancesOutcomeCallable MseClient::listEurekaInstancesCallable(const ListEurekaInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEurekaInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListEurekaServicesOutcome MseClient::listEurekaServices(const ListEurekaServicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEurekaServicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEurekaServicesOutcome(ListEurekaServicesResult(outcome.result())); + else + return ListEurekaServicesOutcome(outcome.error()); +} + +void MseClient::listEurekaServicesAsync(const ListEurekaServicesRequest& request, const ListEurekaServicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEurekaServices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListEurekaServicesOutcomeCallable MseClient::listEurekaServicesCallable(const ListEurekaServicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEurekaServices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListGatewayOutcome MseClient::listGateway(const ListGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGatewayOutcome(ListGatewayResult(outcome.result())); + else + return ListGatewayOutcome(outcome.error()); +} + +void MseClient::listGatewayAsync(const ListGatewayRequest& request, const ListGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListGatewayOutcomeCallable MseClient::listGatewayCallable(const ListGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListGatewayDomainOutcome MseClient::listGatewayDomain(const ListGatewayDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGatewayDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGatewayDomainOutcome(ListGatewayDomainResult(outcome.result())); + else + return ListGatewayDomainOutcome(outcome.error()); +} + +void MseClient::listGatewayDomainAsync(const ListGatewayDomainRequest& request, const ListGatewayDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGatewayDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListGatewayDomainOutcomeCallable MseClient::listGatewayDomainCallable(const ListGatewayDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGatewayDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListGatewayServiceOutcome MseClient::listGatewayService(const ListGatewayServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGatewayServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGatewayServiceOutcome(ListGatewayServiceResult(outcome.result())); + else + return ListGatewayServiceOutcome(outcome.error()); +} + +void MseClient::listGatewayServiceAsync(const ListGatewayServiceRequest& request, const ListGatewayServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGatewayService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListGatewayServiceOutcomeCallable MseClient::listGatewayServiceCallable(const ListGatewayServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGatewayService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListGatewaySlbOutcome MseClient::listGatewaySlb(const ListGatewaySlbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGatewaySlbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGatewaySlbOutcome(ListGatewaySlbResult(outcome.result())); + else + return ListGatewaySlbOutcome(outcome.error()); +} + +void MseClient::listGatewaySlbAsync(const ListGatewaySlbRequest& request, const ListGatewaySlbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGatewaySlb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListGatewaySlbOutcomeCallable MseClient::listGatewaySlbCallable(const ListGatewaySlbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGatewaySlb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListListenersByConfigOutcome MseClient::listListenersByConfig(const ListListenersByConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListListenersByConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListListenersByConfigOutcome(ListListenersByConfigResult(outcome.result())); + else + return ListListenersByConfigOutcome(outcome.error()); +} + +void MseClient::listListenersByConfigAsync(const ListListenersByConfigRequest& request, const ListListenersByConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listListenersByConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListListenersByConfigOutcomeCallable MseClient::listListenersByConfigCallable(const ListListenersByConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listListenersByConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListListenersByIpOutcome MseClient::listListenersByIp(const ListListenersByIpRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListListenersByIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListListenersByIpOutcome(ListListenersByIpResult(outcome.result())); + else + return ListListenersByIpOutcome(outcome.error()); +} + +void MseClient::listListenersByIpAsync(const ListListenersByIpRequest& request, const ListListenersByIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listListenersByIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListListenersByIpOutcomeCallable MseClient::listListenersByIpCallable(const ListListenersByIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listListenersByIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListNacosConfigsOutcome MseClient::listNacosConfigs(const ListNacosConfigsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNacosConfigsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNacosConfigsOutcome(ListNacosConfigsResult(outcome.result())); + else + return ListNacosConfigsOutcome(outcome.error()); +} + +void MseClient::listNacosConfigsAsync(const ListNacosConfigsRequest& request, const ListNacosConfigsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNacosConfigs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListNacosConfigsOutcomeCallable MseClient::listNacosConfigsCallable(const ListNacosConfigsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNacosConfigs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListNacosHistoryConfigsOutcome MseClient::listNacosHistoryConfigs(const ListNacosHistoryConfigsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNacosHistoryConfigsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNacosHistoryConfigsOutcome(ListNacosHistoryConfigsResult(outcome.result())); + else + return ListNacosHistoryConfigsOutcome(outcome.error()); +} + +void MseClient::listNacosHistoryConfigsAsync(const ListNacosHistoryConfigsRequest& request, const ListNacosHistoryConfigsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNacosHistoryConfigs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListNacosHistoryConfigsOutcomeCallable MseClient::listNacosHistoryConfigsCallable(const ListNacosHistoryConfigsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNacosHistoryConfigs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListSSLCertOutcome MseClient::listSSLCert(const ListSSLCertRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSSLCertOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSSLCertOutcome(ListSSLCertResult(outcome.result())); + else + return ListSSLCertOutcome(outcome.error()); +} + +void MseClient::listSSLCertAsync(const ListSSLCertRequest& request, const ListSSLCertAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSSLCert(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListSSLCertOutcomeCallable MseClient::listSSLCertCallable(const ListSSLCertRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSSLCert(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListServiceSourceOutcome MseClient::listServiceSource(const ListServiceSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServiceSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServiceSourceOutcome(ListServiceSourceResult(outcome.result())); + else + return ListServiceSourceOutcome(outcome.error()); +} + +void MseClient::listServiceSourceAsync(const ListServiceSourceRequest& request, const ListServiceSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServiceSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListServiceSourceOutcomeCallable MseClient::listServiceSourceCallable(const ListServiceSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServiceSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ListZnodeChildrenOutcome MseClient::listZnodeChildren(const ListZnodeChildrenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListZnodeChildrenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListZnodeChildrenOutcome(ListZnodeChildrenResult(outcome.result())); + else + return ListZnodeChildrenOutcome(outcome.error()); +} + +void MseClient::listZnodeChildrenAsync(const ListZnodeChildrenRequest& request, const ListZnodeChildrenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listZnodeChildren(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ListZnodeChildrenOutcomeCallable MseClient::listZnodeChildrenCallable(const ListZnodeChildrenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listZnodeChildren(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ModifyGovernanceKubernetesClusterOutcome MseClient::modifyGovernanceKubernetesCluster(const ModifyGovernanceKubernetesClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyGovernanceKubernetesClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyGovernanceKubernetesClusterOutcome(ModifyGovernanceKubernetesClusterResult(outcome.result())); + else + return ModifyGovernanceKubernetesClusterOutcome(outcome.error()); +} + +void MseClient::modifyGovernanceKubernetesClusterAsync(const ModifyGovernanceKubernetesClusterRequest& request, const ModifyGovernanceKubernetesClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyGovernanceKubernetesCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ModifyGovernanceKubernetesClusterOutcomeCallable MseClient::modifyGovernanceKubernetesClusterCallable(const ModifyGovernanceKubernetesClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyGovernanceKubernetesCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::PullServicesOutcome MseClient::pullServices(const PullServicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PullServicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PullServicesOutcome(PullServicesResult(outcome.result())); + else + return PullServicesOutcome(outcome.error()); +} + +void MseClient::pullServicesAsync(const PullServicesRequest& request, const PullServicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pullServices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::PullServicesOutcomeCallable MseClient::pullServicesCallable(const PullServicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pullServices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::QueryBusinessLocationsOutcome MseClient::queryBusinessLocations(const QueryBusinessLocationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryBusinessLocationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryBusinessLocationsOutcome(QueryBusinessLocationsResult(outcome.result())); + else + return QueryBusinessLocationsOutcome(outcome.error()); +} + +void MseClient::queryBusinessLocationsAsync(const QueryBusinessLocationsRequest& request, const QueryBusinessLocationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryBusinessLocations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QueryBusinessLocationsOutcomeCallable MseClient::queryBusinessLocationsCallable(const QueryBusinessLocationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryBusinessLocations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::QueryClusterDetailOutcome MseClient::queryClusterDetail(const QueryClusterDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryClusterDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryClusterDetailOutcome(QueryClusterDetailResult(outcome.result())); + else + return QueryClusterDetailOutcome(outcome.error()); +} + +void MseClient::queryClusterDetailAsync(const QueryClusterDetailRequest& request, const QueryClusterDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryClusterDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QueryClusterDetailOutcomeCallable MseClient::queryClusterDetailCallable(const QueryClusterDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryClusterDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::QueryClusterDiskSpecificationOutcome MseClient::queryClusterDiskSpecification(const QueryClusterDiskSpecificationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryClusterDiskSpecificationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryClusterDiskSpecificationOutcome(QueryClusterDiskSpecificationResult(outcome.result())); + else + return QueryClusterDiskSpecificationOutcome(outcome.error()); +} + +void MseClient::queryClusterDiskSpecificationAsync(const QueryClusterDiskSpecificationRequest& request, const QueryClusterDiskSpecificationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryClusterDiskSpecification(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QueryClusterDiskSpecificationOutcomeCallable MseClient::queryClusterDiskSpecificationCallable(const QueryClusterDiskSpecificationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryClusterDiskSpecification(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::QueryClusterSpecificationOutcome MseClient::queryClusterSpecification(const QueryClusterSpecificationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryClusterSpecificationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryClusterSpecificationOutcome(QueryClusterSpecificationResult(outcome.result())); + else + return QueryClusterSpecificationOutcome(outcome.error()); +} + +void MseClient::queryClusterSpecificationAsync(const QueryClusterSpecificationRequest& request, const QueryClusterSpecificationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryClusterSpecification(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QueryClusterSpecificationOutcomeCallable MseClient::queryClusterSpecificationCallable(const QueryClusterSpecificationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryClusterSpecification(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::QueryConfigOutcome MseClient::queryConfig(const QueryConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryConfigOutcome(QueryConfigResult(outcome.result())); + else + return QueryConfigOutcome(outcome.error()); +} + +void MseClient::queryConfigAsync(const QueryConfigRequest& request, const QueryConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QueryConfigOutcomeCallable MseClient::queryConfigCallable(const QueryConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::QueryGatewayRegionOutcome MseClient::queryGatewayRegion(const QueryGatewayRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryGatewayRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryGatewayRegionOutcome(QueryGatewayRegionResult(outcome.result())); + else + return QueryGatewayRegionOutcome(outcome.error()); +} + +void MseClient::queryGatewayRegionAsync(const QueryGatewayRegionRequest& request, const QueryGatewayRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryGatewayRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QueryGatewayRegionOutcomeCallable MseClient::queryGatewayRegionCallable(const QueryGatewayRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryGatewayRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::QueryGatewayTypeOutcome MseClient::queryGatewayType(const QueryGatewayTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryGatewayTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryGatewayTypeOutcome(QueryGatewayTypeResult(outcome.result())); + else + return QueryGatewayTypeOutcome(outcome.error()); +} + +void MseClient::queryGatewayTypeAsync(const QueryGatewayTypeRequest& request, const QueryGatewayTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryGatewayType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QueryGatewayTypeOutcomeCallable MseClient::queryGatewayTypeCallable(const QueryGatewayTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryGatewayType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::QueryGovernanceKubernetesClusterOutcome MseClient::queryGovernanceKubernetesCluster(const QueryGovernanceKubernetesClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryGovernanceKubernetesClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryGovernanceKubernetesClusterOutcome(QueryGovernanceKubernetesClusterResult(outcome.result())); + else + return QueryGovernanceKubernetesClusterOutcome(outcome.error()); +} + +void MseClient::queryGovernanceKubernetesClusterAsync(const QueryGovernanceKubernetesClusterRequest& request, const QueryGovernanceKubernetesClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryGovernanceKubernetesCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QueryGovernanceKubernetesClusterOutcomeCallable MseClient::queryGovernanceKubernetesClusterCallable(const QueryGovernanceKubernetesClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryGovernanceKubernetesCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::QueryMonitorOutcome MseClient::queryMonitor(const QueryMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryMonitorOutcome(QueryMonitorResult(outcome.result())); + else + return QueryMonitorOutcome(outcome.error()); +} + +void MseClient::queryMonitorAsync(const QueryMonitorRequest& request, const QueryMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QueryMonitorOutcomeCallable MseClient::queryMonitorCallable(const QueryMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::QuerySlbSpecOutcome MseClient::querySlbSpec(const QuerySlbSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySlbSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySlbSpecOutcome(QuerySlbSpecResult(outcome.result())); + else + return QuerySlbSpecOutcome(outcome.error()); +} + +void MseClient::querySlbSpecAsync(const QuerySlbSpecRequest& request, const QuerySlbSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySlbSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QuerySlbSpecOutcomeCallable MseClient::querySlbSpecCallable(const QuerySlbSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySlbSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::QueryZnodeDetailOutcome MseClient::queryZnodeDetail(const QueryZnodeDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryZnodeDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryZnodeDetailOutcome(QueryZnodeDetailResult(outcome.result())); + else + return QueryZnodeDetailOutcome(outcome.error()); +} + +void MseClient::queryZnodeDetailAsync(const QueryZnodeDetailRequest& request, const QueryZnodeDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryZnodeDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::QueryZnodeDetailOutcomeCallable MseClient::queryZnodeDetailCallable(const QueryZnodeDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryZnodeDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::RestartClusterOutcome MseClient::restartCluster(const RestartClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartClusterOutcome(RestartClusterResult(outcome.result())); + else + return RestartClusterOutcome(outcome.error()); +} + +void MseClient::restartClusterAsync(const RestartClusterRequest& request, const RestartClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::RestartClusterOutcomeCallable MseClient::restartClusterCallable(const RestartClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::RetryClusterOutcome MseClient::retryCluster(const RetryClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RetryClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RetryClusterOutcome(RetryClusterResult(outcome.result())); + else + return RetryClusterOutcome(outcome.error()); +} + +void MseClient::retryClusterAsync(const RetryClusterRequest& request, const RetryClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, retryCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::RetryClusterOutcomeCallable MseClient::retryClusterCallable(const RetryClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->retryCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::ScalingClusterOutcome MseClient::scalingCluster(const ScalingClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ScalingClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ScalingClusterOutcome(ScalingClusterResult(outcome.result())); + else + return ScalingClusterOutcome(outcome.error()); +} + +void MseClient::scalingClusterAsync(const ScalingClusterRequest& request, const ScalingClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, scalingCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::ScalingClusterOutcomeCallable MseClient::scalingClusterCallable(const ScalingClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->scalingCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::SelectGatewaySlbOutcome MseClient::selectGatewaySlb(const SelectGatewaySlbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SelectGatewaySlbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SelectGatewaySlbOutcome(SelectGatewaySlbResult(outcome.result())); + else + return SelectGatewaySlbOutcome(outcome.error()); +} + +void MseClient::selectGatewaySlbAsync(const SelectGatewaySlbRequest& request, const SelectGatewaySlbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, selectGatewaySlb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::SelectGatewaySlbOutcomeCallable MseClient::selectGatewaySlbCallable(const SelectGatewaySlbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->selectGatewaySlb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateAclOutcome MseClient::updateAcl(const UpdateAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAclOutcome(UpdateAclResult(outcome.result())); + else + return UpdateAclOutcome(outcome.error()); +} + +void MseClient::updateAclAsync(const UpdateAclRequest& request, const UpdateAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateAclOutcomeCallable MseClient::updateAclCallable(const UpdateAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateBlackWhiteListOutcome MseClient::updateBlackWhiteList(const UpdateBlackWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateBlackWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateBlackWhiteListOutcome(UpdateBlackWhiteListResult(outcome.result())); + else + return UpdateBlackWhiteListOutcome(outcome.error()); +} + +void MseClient::updateBlackWhiteListAsync(const UpdateBlackWhiteListRequest& request, const UpdateBlackWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateBlackWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateBlackWhiteListOutcomeCallable MseClient::updateBlackWhiteListCallable(const UpdateBlackWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateBlackWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateClusterOutcome MseClient::updateCluster(const UpdateClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateClusterOutcome(UpdateClusterResult(outcome.result())); + else + return UpdateClusterOutcome(outcome.error()); +} + +void MseClient::updateClusterAsync(const UpdateClusterRequest& request, const UpdateClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateClusterOutcomeCallable MseClient::updateClusterCallable(const UpdateClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateConfigOutcome MseClient::updateConfig(const UpdateConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateConfigOutcome(UpdateConfigResult(outcome.result())); + else + return UpdateConfigOutcome(outcome.error()); +} + +void MseClient::updateConfigAsync(const UpdateConfigRequest& request, const UpdateConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateConfigOutcomeCallable MseClient::updateConfigCallable(const UpdateConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateEngineNamespaceOutcome MseClient::updateEngineNamespace(const UpdateEngineNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateEngineNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateEngineNamespaceOutcome(UpdateEngineNamespaceResult(outcome.result())); + else + return UpdateEngineNamespaceOutcome(outcome.error()); +} + +void MseClient::updateEngineNamespaceAsync(const UpdateEngineNamespaceRequest& request, const UpdateEngineNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateEngineNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateEngineNamespaceOutcomeCallable MseClient::updateEngineNamespaceCallable(const UpdateEngineNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateEngineNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateGatewayDomainOutcome MseClient::updateGatewayDomain(const UpdateGatewayDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayDomainOutcome(UpdateGatewayDomainResult(outcome.result())); + else + return UpdateGatewayDomainOutcome(outcome.error()); +} + +void MseClient::updateGatewayDomainAsync(const UpdateGatewayDomainRequest& request, const UpdateGatewayDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateGatewayDomainOutcomeCallable MseClient::updateGatewayDomainCallable(const UpdateGatewayDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateGatewayNameOutcome MseClient::updateGatewayName(const UpdateGatewayNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayNameOutcome(UpdateGatewayNameResult(outcome.result())); + else + return UpdateGatewayNameOutcome(outcome.error()); +} + +void MseClient::updateGatewayNameAsync(const UpdateGatewayNameRequest& request, const UpdateGatewayNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateGatewayNameOutcomeCallable MseClient::updateGatewayNameCallable(const UpdateGatewayNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateGatewayOptionOutcome MseClient::updateGatewayOption(const UpdateGatewayOptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayOptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayOptionOutcome(UpdateGatewayOptionResult(outcome.result())); + else + return UpdateGatewayOptionOutcome(outcome.error()); +} + +void MseClient::updateGatewayOptionAsync(const UpdateGatewayOptionRequest& request, const UpdateGatewayOptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayOption(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateGatewayOptionOutcomeCallable MseClient::updateGatewayOptionCallable(const UpdateGatewayOptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayOption(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateGatewayRouteHTTPRewriteOutcome MseClient::updateGatewayRouteHTTPRewrite(const UpdateGatewayRouteHTTPRewriteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayRouteHTTPRewriteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayRouteHTTPRewriteOutcome(UpdateGatewayRouteHTTPRewriteResult(outcome.result())); + else + return UpdateGatewayRouteHTTPRewriteOutcome(outcome.error()); +} + +void MseClient::updateGatewayRouteHTTPRewriteAsync(const UpdateGatewayRouteHTTPRewriteRequest& request, const UpdateGatewayRouteHTTPRewriteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayRouteHTTPRewrite(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateGatewayRouteHTTPRewriteOutcomeCallable MseClient::updateGatewayRouteHTTPRewriteCallable(const UpdateGatewayRouteHTTPRewriteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayRouteHTTPRewrite(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateGatewayServiceVersionOutcome MseClient::updateGatewayServiceVersion(const UpdateGatewayServiceVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayServiceVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayServiceVersionOutcome(UpdateGatewayServiceVersionResult(outcome.result())); + else + return UpdateGatewayServiceVersionOutcome(outcome.error()); +} + +void MseClient::updateGatewayServiceVersionAsync(const UpdateGatewayServiceVersionRequest& request, const UpdateGatewayServiceVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayServiceVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateGatewayServiceVersionOutcomeCallable MseClient::updateGatewayServiceVersionCallable(const UpdateGatewayServiceVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayServiceVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateImageOutcome MseClient::updateImage(const UpdateImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateImageOutcome(UpdateImageResult(outcome.result())); + else + return UpdateImageOutcome(outcome.error()); +} + +void MseClient::updateImageAsync(const UpdateImageRequest& request, const UpdateImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateImageOutcomeCallable MseClient::updateImageCallable(const UpdateImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateNacosClusterOutcome MseClient::updateNacosCluster(const UpdateNacosClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateNacosClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateNacosClusterOutcome(UpdateNacosClusterResult(outcome.result())); + else + return UpdateNacosClusterOutcome(outcome.error()); +} + +void MseClient::updateNacosClusterAsync(const UpdateNacosClusterRequest& request, const UpdateNacosClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateNacosCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateNacosClusterOutcomeCallable MseClient::updateNacosClusterCallable(const UpdateNacosClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateNacosCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateNacosConfigOutcome MseClient::updateNacosConfig(const UpdateNacosConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateNacosConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateNacosConfigOutcome(UpdateNacosConfigResult(outcome.result())); + else + return UpdateNacosConfigOutcome(outcome.error()); +} + +void MseClient::updateNacosConfigAsync(const UpdateNacosConfigRequest& request, const UpdateNacosConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateNacosConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateNacosConfigOutcomeCallable MseClient::updateNacosConfigCallable(const UpdateNacosConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateNacosConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateNacosInstanceOutcome MseClient::updateNacosInstance(const UpdateNacosInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateNacosInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateNacosInstanceOutcome(UpdateNacosInstanceResult(outcome.result())); + else + return UpdateNacosInstanceOutcome(outcome.error()); +} + +void MseClient::updateNacosInstanceAsync(const UpdateNacosInstanceRequest& request, const UpdateNacosInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateNacosInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateNacosInstanceOutcomeCallable MseClient::updateNacosInstanceCallable(const UpdateNacosInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateNacosInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateNacosServiceOutcome MseClient::updateNacosService(const UpdateNacosServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateNacosServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateNacosServiceOutcome(UpdateNacosServiceResult(outcome.result())); + else + return UpdateNacosServiceOutcome(outcome.error()); +} + +void MseClient::updateNacosServiceAsync(const UpdateNacosServiceRequest& request, const UpdateNacosServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateNacosService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateNacosServiceOutcomeCallable MseClient::updateNacosServiceCallable(const UpdateNacosServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateNacosService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateSSLCertOutcome MseClient::updateSSLCert(const UpdateSSLCertRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSSLCertOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSSLCertOutcome(UpdateSSLCertResult(outcome.result())); + else + return UpdateSSLCertOutcome(outcome.error()); +} + +void MseClient::updateSSLCertAsync(const UpdateSSLCertRequest& request, const UpdateSSLCertAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSSLCert(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateSSLCertOutcomeCallable MseClient::updateSSLCertCallable(const UpdateSSLCertRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSSLCert(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpdateZnodeOutcome MseClient::updateZnode(const UpdateZnodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateZnodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateZnodeOutcome(UpdateZnodeResult(outcome.result())); + else + return UpdateZnodeOutcome(outcome.error()); +} + +void MseClient::updateZnodeAsync(const UpdateZnodeRequest& request, const UpdateZnodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateZnode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpdateZnodeOutcomeCallable MseClient::updateZnodeCallable(const UpdateZnodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateZnode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MseClient::UpgradeClusterOutcome MseClient::upgradeCluster(const UpgradeClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeClusterOutcome(UpgradeClusterResult(outcome.result())); + else + return UpgradeClusterOutcome(outcome.error()); +} + +void MseClient::upgradeClusterAsync(const UpgradeClusterRequest& request, const UpgradeClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseClient::UpgradeClusterOutcomeCallable MseClient::upgradeClusterCallable(const UpgradeClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/mse/src/model/AddAuthResourceRequest.cc b/mse/src/model/AddAuthResourceRequest.cc new file mode 100644 index 000000000..4069bb54f --- /dev/null +++ b/mse/src/model/AddAuthResourceRequest.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::AddAuthResourceRequest; + +AddAuthResourceRequest::AddAuthResourceRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddAuthResource") { + setMethod(HttpRequest::Method::Post); +} + +AddAuthResourceRequest::~AddAuthResourceRequest() {} + +std::string AddAuthResourceRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void AddAuthResourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +long AddAuthResourceRequest::getAuthId() const { + return authId_; +} + +void AddAuthResourceRequest::setAuthId(long authId) { + authId_ = authId; + setParameter(std::string("AuthId"), std::to_string(authId)); +} + +long AddAuthResourceRequest::getDomainId() const { + return domainId_; +} + +void AddAuthResourceRequest::setDomainId(long domainId) { + domainId_ = domainId; + setParameter(std::string("DomainId"), std::to_string(domainId)); +} + +std::string AddAuthResourceRequest::getPath() const { + return path_; +} + +void AddAuthResourceRequest::setPath(const std::string &path) { + path_ = path; + setParameter(std::string("Path"), path); +} + +std::string AddAuthResourceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddAuthResourceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/AddAuthResourceResult.cc b/mse/src/model/AddAuthResourceResult.cc new file mode 100644 index 000000000..b9fdfcf9d --- /dev/null +++ b/mse/src/model/AddAuthResourceResult.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; + +AddAuthResourceResult::AddAuthResourceResult() : + ServiceResult() +{} + +AddAuthResourceResult::AddAuthResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddAuthResourceResult::~AddAuthResourceResult() +{} + +void AddAuthResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string AddAuthResourceResult::getMessage()const +{ + return message_; +} + +int AddAuthResourceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long AddAuthResourceResult::getData()const +{ + return data_; +} + +int AddAuthResourceResult::getCode()const +{ + return code_; +} + +bool AddAuthResourceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/AddBlackWhiteListRequest.cc b/mse/src/model/AddBlackWhiteListRequest.cc new file mode 100644 index 000000000..01ba381f1 --- /dev/null +++ b/mse/src/model/AddBlackWhiteListRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::AddBlackWhiteListRequest; + +AddBlackWhiteListRequest::AddBlackWhiteListRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddBlackWhiteList") { + setMethod(HttpRequest::Method::Post); +} + +AddBlackWhiteListRequest::~AddBlackWhiteListRequest() {} + +std::string AddBlackWhiteListRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void AddBlackWhiteListRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string AddBlackWhiteListRequest::getType() const { + return type_; +} + +void AddBlackWhiteListRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string AddBlackWhiteListRequest::getContent() const { + return content_; +} + +void AddBlackWhiteListRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); +} + +bool AddBlackWhiteListRequest::getIsWhite() const { + return isWhite_; +} + +void AddBlackWhiteListRequest::setIsWhite(bool isWhite) { + isWhite_ = isWhite; + setParameter(std::string("IsWhite"), isWhite ? "true" : "false"); +} + +std::string AddBlackWhiteListRequest::getResourceType() const { + return resourceType_; +} + +void AddBlackWhiteListRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string AddBlackWhiteListRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddBlackWhiteListRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string AddBlackWhiteListRequest::getStatus() const { + return status_; +} + +void AddBlackWhiteListRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/mse/src/model/AddBlackWhiteListResult.cc b/mse/src/model/AddBlackWhiteListResult.cc new file mode 100644 index 000000000..83389b54e --- /dev/null +++ b/mse/src/model/AddBlackWhiteListResult.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; + +AddBlackWhiteListResult::AddBlackWhiteListResult() : + ServiceResult() +{} + +AddBlackWhiteListResult::AddBlackWhiteListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddBlackWhiteListResult::~AddBlackWhiteListResult() +{} + +void AddBlackWhiteListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string AddBlackWhiteListResult::getMessage()const +{ + return message_; +} + +int AddBlackWhiteListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long AddBlackWhiteListResult::getData()const +{ + return data_; +} + +int AddBlackWhiteListResult::getCode()const +{ + return code_; +} + +bool AddBlackWhiteListResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/AddGatewayDomainRequest.cc b/mse/src/model/AddGatewayDomainRequest.cc new file mode 100644 index 000000000..b1f98cd07 --- /dev/null +++ b/mse/src/model/AddGatewayDomainRequest.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::AddGatewayDomainRequest; + +AddGatewayDomainRequest::AddGatewayDomainRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddGatewayDomain") { + setMethod(HttpRequest::Method::Post); +} + +AddGatewayDomainRequest::~AddGatewayDomainRequest() {} + +std::string AddGatewayDomainRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void AddGatewayDomainRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string AddGatewayDomainRequest::getProtocol() const { + return protocol_; +} + +void AddGatewayDomainRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +bool AddGatewayDomainRequest::getMustHttps() const { + return mustHttps_; +} + +void AddGatewayDomainRequest::setMustHttps(bool mustHttps) { + mustHttps_ = mustHttps; + setParameter(std::string("MustHttps"), mustHttps ? "true" : "false"); +} + +std::string AddGatewayDomainRequest::getCertIdentifier() const { + return certIdentifier_; +} + +void AddGatewayDomainRequest::setCertIdentifier(const std::string &certIdentifier) { + certIdentifier_ = certIdentifier; + setParameter(std::string("CertIdentifier"), certIdentifier); +} + +std::string AddGatewayDomainRequest::getName() const { + return name_; +} + +void AddGatewayDomainRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string AddGatewayDomainRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddGatewayDomainRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/AddGatewayDomainResult.cc b/mse/src/model/AddGatewayDomainResult.cc new file mode 100644 index 000000000..28f35e472 --- /dev/null +++ b/mse/src/model/AddGatewayDomainResult.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; + +AddGatewayDomainResult::AddGatewayDomainResult() : + ServiceResult() +{} + +AddGatewayDomainResult::AddGatewayDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddGatewayDomainResult::~AddGatewayDomainResult() +{} + +void AddGatewayDomainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string AddGatewayDomainResult::getMessage()const +{ + return message_; +} + +int AddGatewayDomainResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long AddGatewayDomainResult::getData()const +{ + return data_; +} + +int AddGatewayDomainResult::getCode()const +{ + return code_; +} + +bool AddGatewayDomainResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/AddGatewayRequest.cc b/mse/src/model/AddGatewayRequest.cc new file mode 100644 index 000000000..07f177eae --- /dev/null +++ b/mse/src/model/AddGatewayRequest.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::AddGatewayRequest; + +AddGatewayRequest::AddGatewayRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddGateway") { + setMethod(HttpRequest::Method::Post); +} + +AddGatewayRequest::~AddGatewayRequest() {} + +std::string AddGatewayRequest::getInternetSlbSpec() const { + return internetSlbSpec_; +} + +void AddGatewayRequest::setInternetSlbSpec(const std::string &internetSlbSpec) { + internetSlbSpec_ = internetSlbSpec; + setParameter(std::string("InternetSlbSpec"), internetSlbSpec); +} + +int AddGatewayRequest::getReplica() const { + return replica_; +} + +void AddGatewayRequest::setReplica(int replica) { + replica_ = 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); +} + +std::string AddGatewayRequest::getSpec() const { + return spec_; +} + +void AddGatewayRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); +} + +bool AddGatewayRequest::getEnterpriseSecurityGroup() const { + return enterpriseSecurityGroup_; +} + +void AddGatewayRequest::setEnterpriseSecurityGroup(bool enterpriseSecurityGroup) { + enterpriseSecurityGroup_ = enterpriseSecurityGroup; + setParameter(std::string("EnterpriseSecurityGroup"), enterpriseSecurityGroup ? "true" : "false"); +} + +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_; +} + +void AddGatewayRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string AddGatewayRequest::getSlbSpec() const { + return slbSpec_; +} + +void AddGatewayRequest::setSlbSpec(const std::string &slbSpec) { + slbSpec_ = slbSpec; + setParameter(std::string("SlbSpec"), slbSpec); +} + +std::string AddGatewayRequest::getName() const { + return name_; +} + +void AddGatewayRequest::setName(const std::string &name) { + name_ = 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_; +} + +void AddGatewayRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/AddGatewayResult.cc b/mse/src/model/AddGatewayResult.cc new file mode 100644 index 000000000..77978a4c2 --- /dev/null +++ b/mse/src/model/AddGatewayResult.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; + +AddGatewayResult::AddGatewayResult() : + ServiceResult() +{} + +AddGatewayResult::AddGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddGatewayResult::~AddGatewayResult() +{} + +void AddGatewayResult::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["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AddGatewayResult::getMessage()const +{ + return message_; +} + +int AddGatewayResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +AddGatewayResult::Data AddGatewayResult::getData()const +{ + return data_; +} + +int AddGatewayResult::getCode()const +{ + return code_; +} + +bool AddGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/AddGatewayServiceVersionRequest.cc b/mse/src/model/AddGatewayServiceVersionRequest.cc new file mode 100644 index 000000000..b313ecb66 --- /dev/null +++ b/mse/src/model/AddGatewayServiceVersionRequest.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::AddGatewayServiceVersionRequest; + +AddGatewayServiceVersionRequest::AddGatewayServiceVersionRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddGatewayServiceVersion") { + setMethod(HttpRequest::Method::Post); +} + +AddGatewayServiceVersionRequest::~AddGatewayServiceVersionRequest() {} + +std::string AddGatewayServiceVersionRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void AddGatewayServiceVersionRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string AddGatewayServiceVersionRequest::getServiceVersion() const { + return serviceVersion_; +} + +void AddGatewayServiceVersionRequest::setServiceVersion(const std::string &serviceVersion) { + serviceVersion_ = serviceVersion; + setParameter(std::string("ServiceVersion"), serviceVersion); +} + +std::string AddGatewayServiceVersionRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddGatewayServiceVersionRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +long AddGatewayServiceVersionRequest::getServiceId() const { + return serviceId_; +} + +void AddGatewayServiceVersionRequest::setServiceId(long serviceId) { + serviceId_ = serviceId; + setParameter(std::string("ServiceId"), std::to_string(serviceId)); +} + diff --git a/mse/src/model/AddGatewayServiceVersionResult.cc b/mse/src/model/AddGatewayServiceVersionResult.cc new file mode 100644 index 000000000..68e9bc49d --- /dev/null +++ b/mse/src/model/AddGatewayServiceVersionResult.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; + +AddGatewayServiceVersionResult::AddGatewayServiceVersionResult() : + ServiceResult() +{} + +AddGatewayServiceVersionResult::AddGatewayServiceVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddGatewayServiceVersionResult::~AddGatewayServiceVersionResult() +{} + +void AddGatewayServiceVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string AddGatewayServiceVersionResult::getMessage()const +{ + return message_; +} + +int AddGatewayServiceVersionResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long AddGatewayServiceVersionResult::getData()const +{ + return data_; +} + +int AddGatewayServiceVersionResult::getCode()const +{ + return code_; +} + +bool AddGatewayServiceVersionResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/AddGatewaySlbRequest.cc b/mse/src/model/AddGatewaySlbRequest.cc new file mode 100644 index 000000000..4e07a6197 --- /dev/null +++ b/mse/src/model/AddGatewaySlbRequest.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::AddGatewaySlbRequest; + +AddGatewaySlbRequest::AddGatewaySlbRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddGatewaySlb") { + setMethod(HttpRequest::Method::Post); +} + +AddGatewaySlbRequest::~AddGatewaySlbRequest() {} + +std::string AddGatewaySlbRequest::getSlbId() const { + return slbId_; +} + +void AddGatewaySlbRequest::setSlbId(const std::string &slbId) { + slbId_ = slbId; + setParameter(std::string("SlbId"), slbId); +} + +std::string AddGatewaySlbRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void AddGatewaySlbRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string AddGatewaySlbRequest::getType() const { + return type_; +} + +void AddGatewaySlbRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string AddGatewaySlbRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddGatewaySlbRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/AddGatewaySlbResult.cc b/mse/src/model/AddGatewaySlbResult.cc new file mode 100644 index 000000000..78ac5c354 --- /dev/null +++ b/mse/src/model/AddGatewaySlbResult.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; + +AddGatewaySlbResult::AddGatewaySlbResult() : + ServiceResult() +{} + +AddGatewaySlbResult::AddGatewaySlbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddGatewaySlbResult::~AddGatewaySlbResult() +{} + +void AddGatewaySlbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string AddGatewaySlbResult::getMessage()const +{ + return message_; +} + +int AddGatewaySlbResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AddGatewaySlbResult::getData()const +{ + return data_; +} + +int AddGatewaySlbResult::getCode()const +{ + return code_; +} + +bool AddGatewaySlbResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/AddMockRuleRequest.cc b/mse/src/model/AddMockRuleRequest.cc new file mode 100644 index 000000000..865bcbc86 --- /dev/null +++ b/mse/src/model/AddMockRuleRequest.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::AddMockRuleRequest; + +AddMockRuleRequest::AddMockRuleRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddMockRule") { + setMethod(HttpRequest::Method::Post); +} + +AddMockRuleRequest::~AddMockRuleRequest() {} + +std::string AddMockRuleRequest::getExtraJson() const { + return extraJson_; +} + +void AddMockRuleRequest::setExtraJson(const std::string &extraJson) { + extraJson_ = 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_; +} + +void AddMockRuleRequest::setSource(const std::string &source) { + source_ = source; + setParameter(std::string("Source"), source); +} + +bool AddMockRuleRequest::getEnable() const { + return enable_; +} + +void AddMockRuleRequest::setEnable(bool enable) { + enable_ = enable; + setParameter(std::string("Enable"), enable ? "true" : "false"); +} + +std::string AddMockRuleRequest::getScMockItems() const { + return scMockItems_; +} + +void AddMockRuleRequest::setScMockItems(const std::string &scMockItems) { + scMockItems_ = scMockItems; + setParameter(std::string("ScMockItems"), scMockItems); +} + +std::string AddMockRuleRequest::getProviderAppName() const { + return providerAppName_; +} + +void AddMockRuleRequest::setProviderAppName(const std::string &providerAppName) { + providerAppName_ = providerAppName; + setParameter(std::string("ProviderAppName"), providerAppName); +} + +std::string AddMockRuleRequest::getConsumerAppIds() const { + return consumerAppIds_; +} + +void AddMockRuleRequest::setConsumerAppIds(const std::string &consumerAppIds) { + consumerAppIds_ = consumerAppIds; + setParameter(std::string("ConsumerAppIds"), consumerAppIds); +} + +std::string AddMockRuleRequest::getDubboMockItems() const { + return dubboMockItems_; +} + +void AddMockRuleRequest::setDubboMockItems(const std::string &dubboMockItems) { + dubboMockItems_ = 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_; +} + +void AddMockRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +long AddMockRuleRequest::getMockType() const { + return mockType_; +} + +void AddMockRuleRequest::setMockType(long mockType) { + mockType_ = 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/AddMockRuleResult.cc b/mse/src/model/AddMockRuleResult.cc new file mode 100644 index 000000000..cd353e5ba --- /dev/null +++ b/mse/src/model/AddMockRuleResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +AddMockRuleResult::AddMockRuleResult() : + ServiceResult() +{} + +AddMockRuleResult::AddMockRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddMockRuleResult::~AddMockRuleResult() +{} + +void AddMockRuleResult::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["NamespaceId"].isNull()) + data_.namespaceId = dataNode["NamespaceId"].asString(); + if(!dataNode["ScMockItemJson"].isNull()) + data_.scMockItemJson = dataNode["ScMockItemJson"].asString(); + if(!dataNode["ConsumerAppName"].isNull()) + data_.consumerAppName = dataNode["ConsumerAppName"].asString(); + if(!dataNode["ConsumerAppId"].isNull()) + data_.consumerAppId = dataNode["ConsumerAppId"].asString(); + if(!dataNode["AccountId"].isNull()) + data_.accountId = dataNode["AccountId"].asString(); + if(!dataNode["ExtraJson"].isNull()) + data_.extraJson = dataNode["ExtraJson"].asString(); + if(!dataNode["Source"].isNull()) + data_.source = dataNode["Source"].asString(); + if(!dataNode["Region"].isNull()) + data_.region = dataNode["Region"].asString(); + if(!dataNode["ProviderAppId"].isNull()) + data_.providerAppId = dataNode["ProviderAppId"].asString(); + if(!dataNode["ProviderAppName"].isNull()) + data_.providerAppName = dataNode["ProviderAppName"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["Enable"].isNull()) + data_.enable = dataNode["Enable"].asString() == "true"; + if(!dataNode["MockType"].isNull()) + data_.mockType = std::stol(dataNode["MockType"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AddMockRuleResult::getMessage()const +{ + return message_; +} + +int AddMockRuleResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +AddMockRuleResult::Data AddMockRuleResult::getData()const +{ + return data_; +} + +int AddMockRuleResult::getCode()const +{ + return code_; +} + +bool AddMockRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/AddSSLCertRequest.cc b/mse/src/model/AddSSLCertRequest.cc new file mode 100644 index 000000000..9f7c72cf0 --- /dev/null +++ b/mse/src/model/AddSSLCertRequest.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::AddSSLCertRequest; + +AddSSLCertRequest::AddSSLCertRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddSSLCert") { + setMethod(HttpRequest::Method::Get); +} + +AddSSLCertRequest::~AddSSLCertRequest() {} + +std::string AddSSLCertRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void AddSSLCertRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +long AddSSLCertRequest::getDomainId() const { + return domainId_; +} + +void AddSSLCertRequest::setDomainId(long domainId) { + domainId_ = domainId; + setParameter(std::string("DomainId"), std::to_string(domainId)); +} + +std::string AddSSLCertRequest::getCertIdentifier() const { + return certIdentifier_; +} + +void AddSSLCertRequest::setCertIdentifier(const std::string &certIdentifier) { + certIdentifier_ = certIdentifier; + setParameter(std::string("CertIdentifier"), certIdentifier); +} + +std::string AddSSLCertRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddSSLCertRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/AddSSLCertResult.cc b/mse/src/model/AddSSLCertResult.cc new file mode 100644 index 000000000..f7f505b2b --- /dev/null +++ b/mse/src/model/AddSSLCertResult.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; + +AddSSLCertResult::AddSSLCertResult() : + ServiceResult() +{} + +AddSSLCertResult::AddSSLCertResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSSLCertResult::~AddSSLCertResult() +{} + +void AddSSLCertResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +std::string AddSSLCertResult::getMessage()const +{ + return message_; +} + +int AddSSLCertResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool AddSSLCertResult::getData()const +{ + return data_; +} + +int AddSSLCertResult::getCode()const +{ + return code_; +} + +bool AddSSLCertResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/AddServiceSourceRequest.cc b/mse/src/model/AddServiceSourceRequest.cc new file mode 100644 index 000000000..cd64c6bd6 --- /dev/null +++ b/mse/src/model/AddServiceSourceRequest.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::AddServiceSourceRequest; + +AddServiceSourceRequest::AddServiceSourceRequest() + : RpcServiceRequest("mse", "2019-05-31", "AddServiceSource") { + setMethod(HttpRequest::Method::Post); +} + +AddServiceSourceRequest::~AddServiceSourceRequest() {} + +std::string AddServiceSourceRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void AddServiceSourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string AddServiceSourceRequest::getSource() const { + return source_; +} + +void AddServiceSourceRequest::setSource(const std::string &source) { + source_ = source; + setParameter(std::string("Source"), source); +} + +std::string AddServiceSourceRequest::getType() const { + return type_; +} + +void AddServiceSourceRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string AddServiceSourceRequest::getAddress() const { + return address_; +} + +void AddServiceSourceRequest::setAddress(const std::string &address) { + address_ = address; + setParameter(std::string("Address"), address); +} + +std::string AddServiceSourceRequest::getName() const { + return name_; +} + +void AddServiceSourceRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string AddServiceSourceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void AddServiceSourceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/AddServiceSourceResult.cc b/mse/src/model/AddServiceSourceResult.cc new file mode 100644 index 000000000..bee6ac3c5 --- /dev/null +++ b/mse/src/model/AddServiceSourceResult.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; + +AddServiceSourceResult::AddServiceSourceResult() : + ServiceResult() +{} + +AddServiceSourceResult::AddServiceSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddServiceSourceResult::~AddServiceSourceResult() +{} + +void AddServiceSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string AddServiceSourceResult::getMessage()const +{ + return message_; +} + +int AddServiceSourceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long AddServiceSourceResult::getData()const +{ + return data_; +} + +int AddServiceSourceResult::getCode()const +{ + return code_; +} + +bool AddServiceSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/CloneNacosConfigRequest.cc b/mse/src/model/CloneNacosConfigRequest.cc new file mode 100644 index 000000000..7b3d45798 --- /dev/null +++ b/mse/src/model/CloneNacosConfigRequest.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::CloneNacosConfigRequest; + +CloneNacosConfigRequest::CloneNacosConfigRequest() + : RpcServiceRequest("mse", "2019-05-31", "CloneNacosConfig") { + setMethod(HttpRequest::Method::Post); +} + +CloneNacosConfigRequest::~CloneNacosConfigRequest() {} + +std::string CloneNacosConfigRequest::getTargetNamespaceId() const { + return targetNamespaceId_; +} + +void CloneNacosConfigRequest::setTargetNamespaceId(const std::string &targetNamespaceId) { + targetNamespaceId_ = targetNamespaceId; + setParameter(std::string("TargetNamespaceId"), targetNamespaceId); +} + +std::string CloneNacosConfigRequest::getInstanceId() const { + return instanceId_; +} + +void CloneNacosConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CloneNacosConfigRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void CloneNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string CloneNacosConfigRequest::getIds() const { + return ids_; +} + +void CloneNacosConfigRequest::setIds(const std::string &ids) { + ids_ = 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/CloneNacosConfigResult.cc b/mse/src/model/CloneNacosConfigResult.cc new file mode 100644 index 000000000..ce3a8f999 --- /dev/null +++ b/mse/src/model/CloneNacosConfigResult.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; + +CloneNacosConfigResult::CloneNacosConfigResult() : + ServiceResult() +{} + +CloneNacosConfigResult::CloneNacosConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CloneNacosConfigResult::~CloneNacosConfigResult() +{} + +void CloneNacosConfigResult::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["SuccCount"].isNull()) + data_.succCount = std::stoi(dataNode["SuccCount"].asString()); + if(!dataNode["SkipCount"].isNull()) + data_.skipCount = std::stoi(dataNode["SkipCount"].asString()); + auto allSkipDataNode = dataNode["SkipData"]["SkipDataItem"]; + for (auto dataNodeSkipDataSkipDataItem : allSkipDataNode) + { + Data::SkipDataItem skipDataItemObject; + if(!dataNodeSkipDataSkipDataItem["DataId"].isNull()) + skipDataItemObject.dataId = dataNodeSkipDataSkipDataItem["DataId"].asString(); + if(!dataNodeSkipDataSkipDataItem["Group"].isNull()) + skipDataItemObject.group = dataNodeSkipDataSkipDataItem["Group"].asString(); + data_.skipData.push_back(skipDataItemObject); + } + auto allFailDataNode = dataNode["FailData"]["FailDataItem"]; + for (auto dataNodeFailDataFailDataItem : allFailDataNode) + { + Data::FailDataItem failDataItemObject; + if(!dataNodeFailDataFailDataItem["DataId"].isNull()) + failDataItemObject.dataId = dataNodeFailDataFailDataItem["DataId"].asString(); + if(!dataNodeFailDataFailDataItem["Group"].isNull()) + failDataItemObject.group = dataNodeFailDataFailDataItem["Group"].asString(); + data_.failData.push_back(failDataItemObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string CloneNacosConfigResult::getMessage()const +{ + return message_; +} + +int CloneNacosConfigResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +CloneNacosConfigResult::Data CloneNacosConfigResult::getData()const +{ + return data_; +} + +std::string CloneNacosConfigResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CloneNacosConfigResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int CloneNacosConfigResult::getCode()const +{ + return code_; +} + +bool CloneNacosConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/CreateAlarmRuleRequest.cc b/mse/src/model/CreateAlarmRuleRequest.cc new file mode 100644 index 000000000..f238ea097 --- /dev/null +++ b/mse/src/model/CreateAlarmRuleRequest.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::CreateAlarmRuleRequest; + +CreateAlarmRuleRequest::CreateAlarmRuleRequest() + : RpcServiceRequest("mse", "2019-05-31", "CreateAlarmRule") { + setMethod(HttpRequest::Method::Post); +} + +CreateAlarmRuleRequest::~CreateAlarmRuleRequest() {} + +int CreateAlarmRuleRequest::getNValue() const { + return nValue_; +} + +void CreateAlarmRuleRequest::setNValue(int nValue) { + nValue_ = nValue; + setParameter(std::string("NValue"), std::to_string(nValue)); +} + +std::string CreateAlarmRuleRequest::getAlarmItem() const { + return alarmItem_; +} + +void CreateAlarmRuleRequest::setAlarmItem(const std::string &alarmItem) { + alarmItem_ = alarmItem; + setParameter(std::string("AlarmItem"), alarmItem); +} + +std::string CreateAlarmRuleRequest::getClusterId() const { + return clusterId_; +} + +void CreateAlarmRuleRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string CreateAlarmRuleRequest::get_Operator() const { + return _operator_; +} + +void CreateAlarmRuleRequest::set_Operator(const std::string &_operator) { + _operator_ = _operator; + setParameter(std::string("Operator"), _operator); +} + +std::string CreateAlarmRuleRequest::getAlarmAliasName() const { + return alarmAliasName_; +} + +void CreateAlarmRuleRequest::setAlarmAliasName(const std::string &alarmAliasName) { + alarmAliasName_ = alarmAliasName; + setParameter(std::string("AlarmAliasName"), alarmAliasName); +} + +std::string CreateAlarmRuleRequest::getInstanceId() const { + return instanceId_; +} + +void CreateAlarmRuleRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CreateAlarmRuleRequest::getContactGroupIds() const { + return contactGroupIds_; +} + +void CreateAlarmRuleRequest::setContactGroupIds(const std::string &contactGroupIds) { + contactGroupIds_ = contactGroupIds; + setParameter(std::string("ContactGroupIds"), contactGroupIds); +} + +std::string CreateAlarmRuleRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void CreateAlarmRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string CreateAlarmRuleRequest::getAlertWay() const { + return alertWay_; +} + +void CreateAlarmRuleRequest::setAlertWay(const std::string &alertWay) { + alertWay_ = alertWay; + setParameter(std::string("AlertWay"), alertWay); +} + +std::string CreateAlarmRuleRequest::getAggregates() const { + return aggregates_; +} + +void CreateAlarmRuleRequest::setAggregates(const std::string &aggregates) { + aggregates_ = aggregates; + setParameter(std::string("Aggregates"), aggregates); +} + +float CreateAlarmRuleRequest::getValue() const { + return value_; +} + +void CreateAlarmRuleRequest::setValue(float value) { + value_ = value; + setParameter(std::string("Value"), std::to_string(value)); +} + diff --git a/mse/src/model/CreateAlarmRuleResult.cc b/mse/src/model/CreateAlarmRuleResult.cc new file mode 100644 index 000000000..e86a2033d --- /dev/null +++ b/mse/src/model/CreateAlarmRuleResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +CreateAlarmRuleResult::CreateAlarmRuleResult() : + ServiceResult() +{} + +CreateAlarmRuleResult::CreateAlarmRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAlarmRuleResult::~CreateAlarmRuleResult() +{} + +void CreateAlarmRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].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 CreateAlarmRuleResult::getMessage()const +{ + return message_; +} + +std::string CreateAlarmRuleResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateAlarmRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/CreateApplicationRequest.cc b/mse/src/model/CreateApplicationRequest.cc new file mode 100644 index 000000000..8607246d2 --- /dev/null +++ b/mse/src/model/CreateApplicationRequest.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::CreateApplicationRequest; + +CreateApplicationRequest::CreateApplicationRequest() + : RpcServiceRequest("mse", "2019-05-31", "CreateApplication") { + setMethod(HttpRequest::Method::Post); +} + +CreateApplicationRequest::~CreateApplicationRequest() {} + +std::string CreateApplicationRequest::getLanguage() const { + return language_; +} + +void CreateApplicationRequest::setLanguage(const std::string &language) { + language_ = language; + setParameter(std::string("Language"), language); +} + +std::string CreateApplicationRequest::getSource() const { + return source_; +} + +void CreateApplicationRequest::setSource(const std::string &source) { + source_ = source; + setParameter(std::string("Source"), source); +} + +std::string CreateApplicationRequest::getExtraInfo() const { + return extraInfo_; +} + +void CreateApplicationRequest::setExtraInfo(const std::string &extraInfo) { + extraInfo_ = extraInfo; + setParameter(std::string("ExtraInfo"), extraInfo); +} + +std::string CreateApplicationRequest::getAppName() const { + return appName_; +} + +void CreateApplicationRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string CreateApplicationRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void CreateApplicationRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string CreateApplicationRequest::getRegion() const { + return region_; +} + +void CreateApplicationRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/CreateApplicationResult.cc b/mse/src/model/CreateApplicationResult.cc new file mode 100644 index 000000000..8fe789463 --- /dev/null +++ b/mse/src/model/CreateApplicationResult.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; + +CreateApplicationResult::CreateApplicationResult() : + ServiceResult() +{} + +CreateApplicationResult::CreateApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateApplicationResult::~CreateApplicationResult() +{} + +void CreateApplicationResult::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["Status"].isNull()) + data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["ExtraInfo"].isNull()) + data_.extraInfo = dataNode["ExtraInfo"].asString(); + if(!dataNode["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["UpdateTime"].isNull()) + data_.updateTime = std::stol(dataNode["UpdateTime"].asString()); + if(!dataNode["LicenseKey"].isNull()) + data_.licenseKey = dataNode["LicenseKey"].asString(); + if(!dataNode["CreateTime"].isNull()) + data_.createTime = std::stol(dataNode["CreateTime"].asString()); + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["Source"].isNull()) + data_.source = dataNode["Source"].asString(); + if(!dataNode["Language"].isNull()) + data_.language = dataNode["Language"].asString(); + if(!dataNode["RegionId"].isNull()) + data_.regionId = dataNode["RegionId"].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(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CreateApplicationResult::getMessage()const +{ + return message_; +} + +int CreateApplicationResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +CreateApplicationResult::Data CreateApplicationResult::getData()const +{ + return data_; +} + +int CreateApplicationResult::getCode()const +{ + return code_; +} + +std::string CreateApplicationResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/CreateClusterRequest.cc b/mse/src/model/CreateClusterRequest.cc new file mode 100644 index 000000000..f85c6cc78 --- /dev/null +++ b/mse/src/model/CreateClusterRequest.cc @@ -0,0 +1,180 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::CreateClusterRequest; + +CreateClusterRequest::CreateClusterRequest() + : RpcServiceRequest("mse", "2019-05-31", "CreateCluster") { + setMethod(HttpRequest::Method::Post); +} + +CreateClusterRequest::~CreateClusterRequest() {} + +std::string CreateClusterRequest::getClusterSpecification() const { + return clusterSpecification_; +} + +void CreateClusterRequest::setClusterSpecification(const std::string &clusterSpecification) { + clusterSpecification_ = clusterSpecification; + setParameter(std::string("ClusterSpecification"), clusterSpecification); +} + +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::getRequestPars() const { + return requestPars_; +} + +void CreateClusterRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string CreateClusterRequest::getConnectionType() const { + return connectionType_; +} + +void CreateClusterRequest::setConnectionType(const std::string &connectionType) { + connectionType_ = connectionType; + setParameter(std::string("ConnectionType"), connectionType); +} + +std::string CreateClusterRequest::getClusterVersion() const { + return clusterVersion_; +} + +void CreateClusterRequest::setClusterVersion(const std::string &clusterVersion) { + clusterVersion_ = clusterVersion; + setParameter(std::string("ClusterVersion"), clusterVersion); +} + +int CreateClusterRequest::getDiskCapacity() const { + return diskCapacity_; +} + +void CreateClusterRequest::setDiskCapacity(int diskCapacity) { + diskCapacity_ = diskCapacity; + setParameter(std::string("DiskCapacity"), std::to_string(diskCapacity)); +} + +std::string CreateClusterRequest::getDiskType() const { + return diskType_; +} + +void CreateClusterRequest::setDiskType(const std::string &diskType) { + diskType_ = 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::getPubNetworkFlow() const { + return pubNetworkFlow_; +} + +void CreateClusterRequest::setPubNetworkFlow(const std::string &pubNetworkFlow) { + pubNetworkFlow_ = pubNetworkFlow; + setParameter(std::string("PubNetworkFlow"), pubNetworkFlow); +} + +std::string CreateClusterRequest::getVpcId() const { + return vpcId_; +} + +void CreateClusterRequest::setVpcId(const std::string &vpcId) { + vpcId_ = 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_; +} + +void CreateClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string CreateClusterRequest::getRegion() const { + return region_; +} + +void CreateClusterRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/CreateClusterResult.cc b/mse/src/model/CreateClusterResult.cc new file mode 100644 index 000000000..f2df70c55 --- /dev/null +++ b/mse/src/model/CreateClusterResult.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; + +CreateClusterResult::CreateClusterResult() : + ServiceResult() +{} + +CreateClusterResult::CreateClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateClusterResult::~CreateClusterResult() +{} + +void CreateClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateClusterResult::getMessage()const +{ + return message_; +} + +std::string CreateClusterResult::getInstanceId()const +{ + return instanceId_; +} + +std::string CreateClusterResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateClusterResult::getOrderId()const +{ + return orderId_; +} + +bool CreateClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/CreateEngineNamespaceRequest.cc b/mse/src/model/CreateEngineNamespaceRequest.cc new file mode 100644 index 000000000..9316df081 --- /dev/null +++ b/mse/src/model/CreateEngineNamespaceRequest.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::CreateEngineNamespaceRequest; + +CreateEngineNamespaceRequest::CreateEngineNamespaceRequest() + : RpcServiceRequest("mse", "2019-05-31", "CreateEngineNamespace") { + setMethod(HttpRequest::Method::Post); +} + +CreateEngineNamespaceRequest::~CreateEngineNamespaceRequest() {} + +std::string CreateEngineNamespaceRequest::getClusterId() const { + return clusterId_; +} + +void CreateEngineNamespaceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string CreateEngineNamespaceRequest::getInstanceId() const { + return instanceId_; +} + +void CreateEngineNamespaceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = 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_; +} + +void CreateEngineNamespaceRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateEngineNamespaceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void CreateEngineNamespaceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string CreateEngineNamespaceRequest::getDesc() const { + return desc_; +} + +void CreateEngineNamespaceRequest::setDesc(const std::string &desc) { + desc_ = desc; + setParameter(std::string("Desc"), desc); +} + diff --git a/mse/src/model/CreateEngineNamespaceResult.cc b/mse/src/model/CreateEngineNamespaceResult.cc new file mode 100644 index 000000000..ba2710ea4 --- /dev/null +++ b/mse/src/model/CreateEngineNamespaceResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +CreateEngineNamespaceResult::CreateEngineNamespaceResult() : + ServiceResult() +{} + +CreateEngineNamespaceResult::CreateEngineNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEngineNamespaceResult::~CreateEngineNamespaceResult() +{} + +void CreateEngineNamespaceResult::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["Type"].isNull()) + data_.type = std::stoi(dataNode["Type"].asString()); + if(!dataNode["NamespaceShowName"].isNull()) + data_.namespaceShowName = dataNode["NamespaceShowName"].asString(); + if(!dataNode["Quota"].isNull()) + data_.quota = std::stoi(dataNode["Quota"].asString()); + if(!dataNode["Namespace"].isNull()) + data_._namespace = dataNode["Namespace"].asString(); + if(!dataNode["NamespaceDesc"].isNull()) + data_.namespaceDesc = dataNode["NamespaceDesc"].asString(); + if(!dataNode["ConfigCount"].isNull()) + data_.configCount = std::stoi(dataNode["ConfigCount"].asString()); + if(!dataNode["ServiceCount"].isNull()) + data_.serviceCount = std::stoi(dataNode["ServiceCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateEngineNamespaceResult::getMessage()const +{ + return message_; +} + +std::string CreateEngineNamespaceResult::getClusterId()const +{ + return clusterId_; +} + +CreateEngineNamespaceResult::Data CreateEngineNamespaceResult::getData()const +{ + return data_; +} + +std::string CreateEngineNamespaceResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateEngineNamespaceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/CreateNacosConfigRequest.cc b/mse/src/model/CreateNacosConfigRequest.cc new file mode 100644 index 000000000..182417a19 --- /dev/null +++ b/mse/src/model/CreateNacosConfigRequest.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::CreateNacosConfigRequest; + +CreateNacosConfigRequest::CreateNacosConfigRequest() + : RpcServiceRequest("mse", "2019-05-31", "CreateNacosConfig") { + setMethod(HttpRequest::Method::Post); +} + +CreateNacosConfigRequest::~CreateNacosConfigRequest() {} + +std::string CreateNacosConfigRequest::getType() const { + return type_; +} + +void CreateNacosConfigRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string CreateNacosConfigRequest::getContent() const { + return content_; +} + +void CreateNacosConfigRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); +} + +std::string CreateNacosConfigRequest::getTags() const { + return tags_; +} + +void CreateNacosConfigRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string CreateNacosConfigRequest::getBetaIps() const { + return betaIps_; +} + +void CreateNacosConfigRequest::setBetaIps(const std::string &betaIps) { + betaIps_ = betaIps; + setParameter(std::string("BetaIps"), betaIps); +} + +std::string CreateNacosConfigRequest::getInstanceId() const { + return instanceId_; +} + +void CreateNacosConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CreateNacosConfigRequest::getDataId() const { + return dataId_; +} + +void CreateNacosConfigRequest::setDataId(const std::string &dataId) { + dataId_ = dataId; + setParameter(std::string("DataId"), dataId); +} + +std::string CreateNacosConfigRequest::getAppName() const { + return appName_; +} + +void CreateNacosConfigRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string CreateNacosConfigRequest::getNamespaceId() const { + return namespaceId_; +} + +void CreateNacosConfigRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string CreateNacosConfigRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void CreateNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string CreateNacosConfigRequest::getGroup() const { + return group_; +} + +void CreateNacosConfigRequest::setGroup(const std::string &group) { + group_ = group; + setParameter(std::string("Group"), group); +} + +std::string CreateNacosConfigRequest::getDesc() const { + return desc_; +} + +void CreateNacosConfigRequest::setDesc(const std::string &desc) { + desc_ = desc; + setParameter(std::string("Desc"), desc); +} + diff --git a/mse/src/model/CreateNacosConfigResult.cc b/mse/src/model/CreateNacosConfigResult.cc new file mode 100644 index 000000000..d04b4cd69 --- /dev/null +++ b/mse/src/model/CreateNacosConfigResult.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; + +CreateNacosConfigResult::CreateNacosConfigResult() : + ServiceResult() +{} + +CreateNacosConfigResult::CreateNacosConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNacosConfigResult::~CreateNacosConfigResult() +{} + +void CreateNacosConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateNacosConfigResult::getHttpCode()const +{ + return httpCode_; +} + +std::string CreateNacosConfigResult::getMessage()const +{ + return message_; +} + +std::string CreateNacosConfigResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateNacosConfigResult::getCode()const +{ + return code_; +} + +bool CreateNacosConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/CreateNacosInstanceRequest.cc b/mse/src/model/CreateNacosInstanceRequest.cc new file mode 100644 index 000000000..9cd92a01d --- /dev/null +++ b/mse/src/model/CreateNacosInstanceRequest.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::CreateNacosInstanceRequest; + +CreateNacosInstanceRequest::CreateNacosInstanceRequest() + : RpcServiceRequest("mse", "2019-05-31", "CreateNacosInstance") { + setMethod(HttpRequest::Method::Post); +} + +CreateNacosInstanceRequest::~CreateNacosInstanceRequest() {} + +std::string CreateNacosInstanceRequest::getMetadata() const { + return metadata_; +} + +void CreateNacosInstanceRequest::setMetadata(const std::string &metadata) { + metadata_ = metadata; + setBodyParameter(std::string("Metadata"), metadata); +} + +std::string CreateNacosInstanceRequest::getClusterName() const { + return clusterName_; +} + +void CreateNacosInstanceRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + setParameter(std::string("ClusterName"), clusterName); +} + +bool CreateNacosInstanceRequest::getEphemeral() const { + return ephemeral_; +} + +void CreateNacosInstanceRequest::setEphemeral(bool ephemeral) { + ephemeral_ = 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_; +} + +void CreateNacosInstanceRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = 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_; +} + +void CreateNacosInstanceRequest::setIp(const std::string &ip) { + ip_ = ip; + setParameter(std::string("Ip"), ip); +} + +std::string CreateNacosInstanceRequest::getWeight() const { + return weight_; +} + +void CreateNacosInstanceRequest::setWeight(const std::string &weight) { + weight_ = weight; + setParameter(std::string("Weight"), weight); +} + +std::string CreateNacosInstanceRequest::getGroupName() const { + return groupName_; +} + +void CreateNacosInstanceRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string CreateNacosInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void CreateNacosInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int CreateNacosInstanceRequest::getPort() const { + return port_; +} + +void CreateNacosInstanceRequest::setPort(int port) { + port_ = port; + setParameter(std::string("Port"), std::to_string(port)); +} + +std::string CreateNacosInstanceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void CreateNacosInstanceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/CreateNacosInstanceResult.cc b/mse/src/model/CreateNacosInstanceResult.cc new file mode 100644 index 000000000..b7941a22b --- /dev/null +++ b/mse/src/model/CreateNacosInstanceResult.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; + +CreateNacosInstanceResult::CreateNacosInstanceResult() : + ServiceResult() +{} + +CreateNacosInstanceResult::CreateNacosInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNacosInstanceResult::~CreateNacosInstanceResult() +{} + +void CreateNacosInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string CreateNacosInstanceResult::getMessage()const +{ + return message_; +} + +int CreateNacosInstanceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateNacosInstanceResult::getData()const +{ + return data_; +} + +int CreateNacosInstanceResult::getCode()const +{ + return code_; +} + +bool CreateNacosInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/CreateNacosServiceRequest.cc b/mse/src/model/CreateNacosServiceRequest.cc new file mode 100644 index 000000000..f516e5c32 --- /dev/null +++ b/mse/src/model/CreateNacosServiceRequest.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::CreateNacosServiceRequest; + +CreateNacosServiceRequest::CreateNacosServiceRequest() + : RpcServiceRequest("mse", "2019-05-31", "CreateNacosService") { + setMethod(HttpRequest::Method::Post); +} + +CreateNacosServiceRequest::~CreateNacosServiceRequest() {} + +bool CreateNacosServiceRequest::getEphemeral() const { + return ephemeral_; +} + +void CreateNacosServiceRequest::setEphemeral(bool ephemeral) { + ephemeral_ = ephemeral; + setParameter(std::string("Ephemeral"), ephemeral ? "true" : "false"); +} + +std::string CreateNacosServiceRequest::getClusterId() const { + return clusterId_; +} + +void CreateNacosServiceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string CreateNacosServiceRequest::getGroupName() const { + return groupName_; +} + +void CreateNacosServiceRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string CreateNacosServiceRequest::getInstanceId() const { + return instanceId_; +} + +void CreateNacosServiceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = 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_; +} + +void CreateNacosServiceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + 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_; +} + +void CreateNacosServiceRequest::setProtectThreshold(const std::string &protectThreshold) { + protectThreshold_ = protectThreshold; + setParameter(std::string("ProtectThreshold"), protectThreshold); +} + diff --git a/mse/src/model/CreateNacosServiceResult.cc b/mse/src/model/CreateNacosServiceResult.cc new file mode 100644 index 000000000..af706090a --- /dev/null +++ b/mse/src/model/CreateNacosServiceResult.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; + +CreateNacosServiceResult::CreateNacosServiceResult() : + ServiceResult() +{} + +CreateNacosServiceResult::CreateNacosServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNacosServiceResult::~CreateNacosServiceResult() +{} + +void CreateNacosServiceResult::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["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"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateNacosServiceResult::getMessage()const +{ + return message_; +} + +int CreateNacosServiceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateNacosServiceResult::getData()const +{ + return data_; +} + +int CreateNacosServiceResult::getCode()const +{ + return code_; +} + +bool CreateNacosServiceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/CreateZnodeRequest.cc b/mse/src/model/CreateZnodeRequest.cc new file mode 100644 index 000000000..84ad663aa --- /dev/null +++ b/mse/src/model/CreateZnodeRequest.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::CreateZnodeRequest; + +CreateZnodeRequest::CreateZnodeRequest() + : RpcServiceRequest("mse", "2019-05-31", "CreateZnode") { + setMethod(HttpRequest::Method::Post); +} + +CreateZnodeRequest::~CreateZnodeRequest() {} + +std::string CreateZnodeRequest::getData() const { + return data_; +} + +void CreateZnodeRequest::setData(const std::string &data) { + data_ = data; + setParameter(std::string("Data"), data); +} + +std::string CreateZnodeRequest::getClusterId() const { + return clusterId_; +} + +void CreateZnodeRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string CreateZnodeRequest::getPath() const { + return path_; +} + +void CreateZnodeRequest::setPath(const std::string &path) { + path_ = path; + setParameter(std::string("Path"), path); +} + +std::string CreateZnodeRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void CreateZnodeRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/CreateZnodeResult.cc b/mse/src/model/CreateZnodeResult.cc new file mode 100644 index 000000000..77c1cf9ec --- /dev/null +++ b/mse/src/model/CreateZnodeResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +CreateZnodeResult::CreateZnodeResult() : + ServiceResult() +{} + +CreateZnodeResult::CreateZnodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateZnodeResult::~CreateZnodeResult() +{} + +void CreateZnodeResult::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["Data"].isNull()) + data_.data = dataNode["Data"].asString(); + if(!dataNode["Path"].isNull()) + data_.path = dataNode["Path"].asString(); + if(!dataNode["Dir"].isNull()) + data_.dir = dataNode["Dir"].asString() == "true"; + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].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 CreateZnodeResult::getHttpCode()const +{ + return httpCode_; +} + +std::string CreateZnodeResult::getMessage()const +{ + return message_; +} + +CreateZnodeResult::Data CreateZnodeResult::getData()const +{ + return data_; +} + +std::string CreateZnodeResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateZnodeResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteAlarmRuleRequest.cc b/mse/src/model/DeleteAlarmRuleRequest.cc new file mode 100644 index 000000000..5d22f00b4 --- /dev/null +++ b/mse/src/model/DeleteAlarmRuleRequest.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::DeleteAlarmRuleRequest; + +DeleteAlarmRuleRequest::DeleteAlarmRuleRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteAlarmRule") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAlarmRuleRequest::~DeleteAlarmRuleRequest() {} + +std::string DeleteAlarmRuleRequest::getAlarmRuleId() const { + return alarmRuleId_; +} + +void DeleteAlarmRuleRequest::setAlarmRuleId(const std::string &alarmRuleId) { + alarmRuleId_ = alarmRuleId; + setParameter(std::string("AlarmRuleId"), alarmRuleId); +} + +std::string DeleteAlarmRuleRequest::getRequestPars() const { + return requestPars_; +} + +void DeleteAlarmRuleRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string DeleteAlarmRuleRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteAlarmRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/DeleteAlarmRuleResult.cc b/mse/src/model/DeleteAlarmRuleResult.cc new file mode 100644 index 000000000..e85e8822d --- /dev/null +++ b/mse/src/model/DeleteAlarmRuleResult.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; + +DeleteAlarmRuleResult::DeleteAlarmRuleResult() : + ServiceResult() +{} + +DeleteAlarmRuleResult::DeleteAlarmRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAlarmRuleResult::~DeleteAlarmRuleResult() +{} + +void DeleteAlarmRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + 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 DeleteAlarmRuleResult::getHttpCode()const +{ + return httpCode_; +} + +std::string DeleteAlarmRuleResult::getMessage()const +{ + return message_; +} + +std::string DeleteAlarmRuleResult::getErrorCode()const +{ + return errorCode_; +} + +bool DeleteAlarmRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteAuthResourceRequest.cc b/mse/src/model/DeleteAuthResourceRequest.cc new file mode 100644 index 000000000..dbef1fc6a --- /dev/null +++ b/mse/src/model/DeleteAuthResourceRequest.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::DeleteAuthResourceRequest; + +DeleteAuthResourceRequest::DeleteAuthResourceRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteAuthResource") { + setMethod(HttpRequest::Method::Get); +} + +DeleteAuthResourceRequest::~DeleteAuthResourceRequest() {} + +std::string DeleteAuthResourceRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void DeleteAuthResourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string DeleteAuthResourceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteAuthResourceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +long DeleteAuthResourceRequest::getId() const { + return id_; +} + +void DeleteAuthResourceRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/mse/src/model/DeleteAuthResourceResult.cc b/mse/src/model/DeleteAuthResourceResult.cc new file mode 100644 index 000000000..9a50fed42 --- /dev/null +++ b/mse/src/model/DeleteAuthResourceResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +DeleteAuthResourceResult::DeleteAuthResourceResult() : + ServiceResult() +{} + +DeleteAuthResourceResult::DeleteAuthResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAuthResourceResult::~DeleteAuthResourceResult() +{} + +void DeleteAuthResourceResult::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["AuthId"].isNull()) + data_.authId = std::stol(dataNode["AuthId"].asString()); + if(!dataNode["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!dataNode["GatewayId"].isNull()) + data_.gatewayId = std::stol(dataNode["GatewayId"].asString()); + if(!dataNode["DomainId"].isNull()) + data_.domainId = std::stol(dataNode["DomainId"].asString()); + if(!dataNode["DomainName"].isNull()) + data_.domainName = dataNode["DomainName"].asString(); + if(!dataNode["Path"].isNull()) + data_.path = dataNode["Path"].asString(); + if(!dataNode["IsWhite"].isNull()) + data_.isWhite = dataNode["IsWhite"].asString() == "true"; + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = dataNode["GmtCreate"].asString(); + if(!dataNode["GmtModified"].isNull()) + data_.gmtModified = dataNode["GmtModified"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteAuthResourceResult::getMessage()const +{ + return message_; +} + +int DeleteAuthResourceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +DeleteAuthResourceResult::Data DeleteAuthResourceResult::getData()const +{ + return data_; +} + +int DeleteAuthResourceResult::getCode()const +{ + return code_; +} + +bool DeleteAuthResourceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteClusterRequest.cc b/mse/src/model/DeleteClusterRequest.cc new file mode 100644 index 000000000..e49c27efe --- /dev/null +++ b/mse/src/model/DeleteClusterRequest.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::DeleteClusterRequest; + +DeleteClusterRequest::DeleteClusterRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteCluster") { + setMethod(HttpRequest::Method::Post); +} + +DeleteClusterRequest::~DeleteClusterRequest() {} + +std::string DeleteClusterRequest::getClusterId() const { + return clusterId_; +} + +void DeleteClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DeleteClusterRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteClusterRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DeleteClusterRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/DeleteClusterResult.cc b/mse/src/model/DeleteClusterResult.cc new file mode 100644 index 000000000..3bcc75d22 --- /dev/null +++ b/mse/src/model/DeleteClusterResult.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; + +DeleteClusterResult::DeleteClusterResult() : + ServiceResult() +{} + +DeleteClusterResult::DeleteClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteClusterResult::~DeleteClusterResult() +{} + +void DeleteClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + 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 DeleteClusterResult::getHttpCode()const +{ + return httpCode_; +} + +std::string DeleteClusterResult::getMessage()const +{ + return message_; +} + +std::string DeleteClusterResult::getErrorCode()const +{ + return errorCode_; +} + +bool DeleteClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteEngineNamespaceRequest.cc b/mse/src/model/DeleteEngineNamespaceRequest.cc new file mode 100644 index 000000000..191330003 --- /dev/null +++ b/mse/src/model/DeleteEngineNamespaceRequest.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::DeleteEngineNamespaceRequest; + +DeleteEngineNamespaceRequest::DeleteEngineNamespaceRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteEngineNamespace") { + setMethod(HttpRequest::Method::Post); +} + +DeleteEngineNamespaceRequest::~DeleteEngineNamespaceRequest() {} + +std::string DeleteEngineNamespaceRequest::getClusterId() const { + return clusterId_; +} + +void DeleteEngineNamespaceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DeleteEngineNamespaceRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteEngineNamespaceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DeleteEngineNamespaceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteEngineNamespaceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + 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/DeleteEngineNamespaceResult.cc b/mse/src/model/DeleteEngineNamespaceResult.cc new file mode 100644 index 000000000..5d5c0faed --- /dev/null +++ b/mse/src/model/DeleteEngineNamespaceResult.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; + +DeleteEngineNamespaceResult::DeleteEngineNamespaceResult() : + ServiceResult() +{} + +DeleteEngineNamespaceResult::DeleteEngineNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteEngineNamespaceResult::~DeleteEngineNamespaceResult() +{} + +void DeleteEngineNamespaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + 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 DeleteEngineNamespaceResult::getHttpCode()const +{ + return httpCode_; +} + +std::string DeleteEngineNamespaceResult::getMessage()const +{ + return message_; +} + +std::string DeleteEngineNamespaceResult::getErrorCode()const +{ + return errorCode_; +} + +bool DeleteEngineNamespaceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteGatewayDomainRequest.cc b/mse/src/model/DeleteGatewayDomainRequest.cc new file mode 100644 index 000000000..dee68e39b --- /dev/null +++ b/mse/src/model/DeleteGatewayDomainRequest.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::DeleteGatewayDomainRequest; + +DeleteGatewayDomainRequest::DeleteGatewayDomainRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayDomain") { + setMethod(HttpRequest::Method::Get); +} + +DeleteGatewayDomainRequest::~DeleteGatewayDomainRequest() {} + +std::string DeleteGatewayDomainRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void DeleteGatewayDomainRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + 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_; +} + +void DeleteGatewayDomainRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("Id"), id); +} + diff --git a/mse/src/model/DeleteGatewayDomainResult.cc b/mse/src/model/DeleteGatewayDomainResult.cc new file mode 100644 index 000000000..db5103873 --- /dev/null +++ b/mse/src/model/DeleteGatewayDomainResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +DeleteGatewayDomainResult::DeleteGatewayDomainResult() : + ServiceResult() +{} + +DeleteGatewayDomainResult::DeleteGatewayDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewayDomainResult::~DeleteGatewayDomainResult() +{} + +void DeleteGatewayDomainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!dataNode["GatewayId"].isNull()) + data_.gatewayId = std::stol(dataNode["GatewayId"].asString()); + if(!dataNode["Protocol"].isNull()) + data_.protocol = dataNode["Protocol"].asString(); + if(!dataNode["MustHttps"].isNull()) + data_.mustHttps = dataNode["MustHttps"].asString() == "true"; + if(!dataNode["CertIdentifier"].isNull()) + data_.certIdentifier = std::stoi(dataNode["CertIdentifier"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = dataNode["GmtCreate"].asString(); + if(!dataNode["GmtModified"].isNull()) + data_.gmtModified = dataNode["GmtModified"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteGatewayDomainResult::getMessage()const +{ + return message_; +} + +int DeleteGatewayDomainResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +DeleteGatewayDomainResult::Data DeleteGatewayDomainResult::getData()const +{ + return data_; +} + +int DeleteGatewayDomainResult::getCode()const +{ + return code_; +} + +bool DeleteGatewayDomainResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteGatewayRequest.cc b/mse/src/model/DeleteGatewayRequest.cc new file mode 100644 index 000000000..b8da0e643 --- /dev/null +++ b/mse/src/model/DeleteGatewayRequest.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::DeleteGatewayRequest; + +DeleteGatewayRequest::DeleteGatewayRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteGateway") { + setMethod(HttpRequest::Method::Get); +} + +DeleteGatewayRequest::~DeleteGatewayRequest() {} + +bool DeleteGatewayRequest::getDeleteSlb() const { + return deleteSlb_; +} + +void DeleteGatewayRequest::setDeleteSlb(bool deleteSlb) { + deleteSlb_ = deleteSlb; + setParameter(std::string("DeleteSlb"), deleteSlb ? "true" : "false"); +} + +std::string DeleteGatewayRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void DeleteGatewayRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string DeleteGatewayRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteGatewayRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/DeleteGatewayResult.cc b/mse/src/model/DeleteGatewayResult.cc new file mode 100644 index 000000000..289608e12 --- /dev/null +++ b/mse/src/model/DeleteGatewayResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +DeleteGatewayResult::DeleteGatewayResult() : + ServiceResult() +{} + +DeleteGatewayResult::DeleteGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewayResult::~DeleteGatewayResult() +{} + +void DeleteGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!dataNode["Region"].isNull()) + data_.region = dataNode["Region"].asString(); + if(!dataNode["PrimaryUser"].isNull()) + data_.primaryUser = dataNode["PrimaryUser"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["Vpc"].isNull()) + data_.vpc = dataNode["Vpc"].asString(); + if(!dataNode["Vswitch"].isNull()) + data_.vswitch = dataNode["Vswitch"].asString(); + if(!dataNode["SecurityGroup"].isNull()) + data_.securityGroup = dataNode["SecurityGroup"].asString(); + if(!dataNode["Spec"].isNull()) + data_.spec = dataNode["Spec"].asString(); + if(!dataNode["Replica"].isNull()) + data_.replica = std::stoi(dataNode["Replica"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = dataNode["GmtCreate"].asString(); + if(!dataNode["GmtModified"].isNull()) + data_.gmtModified = dataNode["GmtModified"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteGatewayResult::getMessage()const +{ + return message_; +} + +int DeleteGatewayResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +DeleteGatewayResult::Data DeleteGatewayResult::getData()const +{ + return data_; +} + +int DeleteGatewayResult::getCode()const +{ + return code_; +} + +bool DeleteGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteGatewayServiceVersionRequest.cc b/mse/src/model/DeleteGatewayServiceVersionRequest.cc new file mode 100644 index 000000000..6f3422818 --- /dev/null +++ b/mse/src/model/DeleteGatewayServiceVersionRequest.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::DeleteGatewayServiceVersionRequest; + +DeleteGatewayServiceVersionRequest::DeleteGatewayServiceVersionRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayServiceVersion") { + setMethod(HttpRequest::Method::Post); +} + +DeleteGatewayServiceVersionRequest::~DeleteGatewayServiceVersionRequest() {} + +std::string DeleteGatewayServiceVersionRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void DeleteGatewayServiceVersionRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string DeleteGatewayServiceVersionRequest::getServiceVersion() const { + return serviceVersion_; +} + +void DeleteGatewayServiceVersionRequest::setServiceVersion(const std::string &serviceVersion) { + serviceVersion_ = serviceVersion; + setParameter(std::string("ServiceVersion"), serviceVersion); +} + +std::string DeleteGatewayServiceVersionRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteGatewayServiceVersionRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +long DeleteGatewayServiceVersionRequest::getServiceId() const { + return serviceId_; +} + +void DeleteGatewayServiceVersionRequest::setServiceId(long serviceId) { + serviceId_ = serviceId; + setParameter(std::string("ServiceId"), std::to_string(serviceId)); +} + diff --git a/mse/src/model/DeleteGatewayServiceVersionResult.cc b/mse/src/model/DeleteGatewayServiceVersionResult.cc new file mode 100644 index 000000000..0c3755a38 --- /dev/null +++ b/mse/src/model/DeleteGatewayServiceVersionResult.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; + +DeleteGatewayServiceVersionResult::DeleteGatewayServiceVersionResult() : + ServiceResult() +{} + +DeleteGatewayServiceVersionResult::DeleteGatewayServiceVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewayServiceVersionResult::~DeleteGatewayServiceVersionResult() +{} + +void DeleteGatewayServiceVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string DeleteGatewayServiceVersionResult::getMessage()const +{ + return message_; +} + +int DeleteGatewayServiceVersionResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long DeleteGatewayServiceVersionResult::getData()const +{ + return data_; +} + +int DeleteGatewayServiceVersionResult::getCode()const +{ + return code_; +} + +bool DeleteGatewayServiceVersionResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteGatewaySlbRequest.cc b/mse/src/model/DeleteGatewaySlbRequest.cc new file mode 100644 index 000000000..22d5cce14 --- /dev/null +++ b/mse/src/model/DeleteGatewaySlbRequest.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::DeleteGatewaySlbRequest; + +DeleteGatewaySlbRequest::DeleteGatewaySlbRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteGatewaySlb") { + setMethod(HttpRequest::Method::Get); +} + +DeleteGatewaySlbRequest::~DeleteGatewaySlbRequest() {} + +bool DeleteGatewaySlbRequest::getDeleteSlb() const { + return deleteSlb_; +} + +void DeleteGatewaySlbRequest::setDeleteSlb(bool deleteSlb) { + deleteSlb_ = deleteSlb; + setParameter(std::string("DeleteSlb"), deleteSlb ? "true" : "false"); +} + +std::string DeleteGatewaySlbRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void DeleteGatewaySlbRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string DeleteGatewaySlbRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteGatewaySlbRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string DeleteGatewaySlbRequest::getId() const { + return id_; +} + +void DeleteGatewaySlbRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("Id"), id); +} + diff --git a/mse/src/model/DeleteGatewaySlbResult.cc b/mse/src/model/DeleteGatewaySlbResult.cc new file mode 100644 index 000000000..5964190f8 --- /dev/null +++ b/mse/src/model/DeleteGatewaySlbResult.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; + +DeleteGatewaySlbResult::DeleteGatewaySlbResult() : + ServiceResult() +{} + +DeleteGatewaySlbResult::DeleteGatewaySlbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewaySlbResult::~DeleteGatewaySlbResult() +{} + +void DeleteGatewaySlbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DeleteGatewaySlbResult::getMessage()const +{ + return message_; +} + +int DeleteGatewaySlbResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteGatewaySlbResult::getData()const +{ + return data_; +} + +int DeleteGatewaySlbResult::getCode()const +{ + return code_; +} + +bool DeleteGatewaySlbResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteNacosConfigRequest.cc b/mse/src/model/DeleteNacosConfigRequest.cc new file mode 100644 index 000000000..806bcad7d --- /dev/null +++ b/mse/src/model/DeleteNacosConfigRequest.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::DeleteNacosConfigRequest; + +DeleteNacosConfigRequest::DeleteNacosConfigRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteNacosConfig") { + setMethod(HttpRequest::Method::Post); +} + +DeleteNacosConfigRequest::~DeleteNacosConfigRequest() {} + +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_; +} + +void DeleteNacosConfigRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = 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_; +} + +void DeleteNacosConfigRequest::setBeta(bool beta) { + beta_ = beta; + setParameter(std::string("Beta"), beta ? "true" : "false"); +} + +std::string DeleteNacosConfigRequest::getGroup() const { + return group_; +} + +void DeleteNacosConfigRequest::setGroup(const std::string &group) { + group_ = group; + setParameter(std::string("Group"), group); +} + diff --git a/mse/src/model/DeleteNacosConfigResult.cc b/mse/src/model/DeleteNacosConfigResult.cc new file mode 100644 index 000000000..e4d60a764 --- /dev/null +++ b/mse/src/model/DeleteNacosConfigResult.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; + +DeleteNacosConfigResult::DeleteNacosConfigResult() : + ServiceResult() +{} + +DeleteNacosConfigResult::DeleteNacosConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNacosConfigResult::~DeleteNacosConfigResult() +{} + +void DeleteNacosConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteNacosConfigResult::getHttpCode()const +{ + return httpCode_; +} + +std::string DeleteNacosConfigResult::getMessage()const +{ + return message_; +} + +std::string DeleteNacosConfigResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteNacosConfigResult::getCode()const +{ + return code_; +} + +bool DeleteNacosConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteNacosConfigsRequest.cc b/mse/src/model/DeleteNacosConfigsRequest.cc new file mode 100644 index 000000000..0a44984a0 --- /dev/null +++ b/mse/src/model/DeleteNacosConfigsRequest.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::DeleteNacosConfigsRequest; + +DeleteNacosConfigsRequest::DeleteNacosConfigsRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteNacosConfigs") { + setMethod(HttpRequest::Method::Post); +} + +DeleteNacosConfigsRequest::~DeleteNacosConfigsRequest() {} + +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_; +} + +void DeleteNacosConfigsRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string DeleteNacosConfigsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteNacosConfigsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string DeleteNacosConfigsRequest::getIds() const { + return ids_; +} + +void DeleteNacosConfigsRequest::setIds(const std::string &ids) { + ids_ = ids; + setParameter(std::string("Ids"), ids); +} + diff --git a/mse/src/model/DeleteNacosConfigsResult.cc b/mse/src/model/DeleteNacosConfigsResult.cc new file mode 100644 index 000000000..eedc9714d --- /dev/null +++ b/mse/src/model/DeleteNacosConfigsResult.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; + +DeleteNacosConfigsResult::DeleteNacosConfigsResult() : + ServiceResult() +{} + +DeleteNacosConfigsResult::DeleteNacosConfigsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNacosConfigsResult::~DeleteNacosConfigsResult() +{} + +void DeleteNacosConfigsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteNacosConfigsResult::getHttpCode()const +{ + return httpCode_; +} + +std::string DeleteNacosConfigsResult::getMessage()const +{ + return message_; +} + +std::string DeleteNacosConfigsResult::getErrorCode()const +{ + return errorCode_; +} + +int DeleteNacosConfigsResult::getCode()const +{ + return code_; +} + +bool DeleteNacosConfigsResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteNacosServiceRequest.cc b/mse/src/model/DeleteNacosServiceRequest.cc new file mode 100644 index 000000000..5f4ba3e16 --- /dev/null +++ b/mse/src/model/DeleteNacosServiceRequest.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::DeleteNacosServiceRequest; + +DeleteNacosServiceRequest::DeleteNacosServiceRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteNacosService") { + setMethod(HttpRequest::Method::Post); +} + +DeleteNacosServiceRequest::~DeleteNacosServiceRequest() {} + +std::string DeleteNacosServiceRequest::getGroupName() const { + return groupName_; +} + +void DeleteNacosServiceRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string DeleteNacosServiceRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteNacosServiceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = 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_; +} + +void DeleteNacosServiceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + 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/DeleteNacosServiceResult.cc b/mse/src/model/DeleteNacosServiceResult.cc new file mode 100644 index 000000000..ada1cc164 --- /dev/null +++ b/mse/src/model/DeleteNacosServiceResult.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; + +DeleteNacosServiceResult::DeleteNacosServiceResult() : + ServiceResult() +{} + +DeleteNacosServiceResult::DeleteNacosServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNacosServiceResult::~DeleteNacosServiceResult() +{} + +void DeleteNacosServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DeleteNacosServiceResult::getMessage()const +{ + return message_; +} + +int DeleteNacosServiceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteNacosServiceResult::getData()const +{ + return data_; +} + +int DeleteNacosServiceResult::getCode()const +{ + return code_; +} + +bool DeleteNacosServiceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteServiceSourceRequest.cc b/mse/src/model/DeleteServiceSourceRequest.cc new file mode 100644 index 000000000..036fa5666 --- /dev/null +++ b/mse/src/model/DeleteServiceSourceRequest.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::DeleteServiceSourceRequest; + +DeleteServiceSourceRequest::DeleteServiceSourceRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteServiceSource") { + setMethod(HttpRequest::Method::Get); +} + +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::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void DeleteServiceSourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string DeleteServiceSourceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteServiceSourceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/DeleteServiceSourceResult.cc b/mse/src/model/DeleteServiceSourceResult.cc new file mode 100644 index 000000000..2a6d94327 --- /dev/null +++ b/mse/src/model/DeleteServiceSourceResult.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; + +DeleteServiceSourceResult::DeleteServiceSourceResult() : + ServiceResult() +{} + +DeleteServiceSourceResult::DeleteServiceSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteServiceSourceResult::~DeleteServiceSourceResult() +{} + +void DeleteServiceSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteServiceSourceResult::getMessage()const +{ + return message_; +} + +int DeleteServiceSourceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +int DeleteServiceSourceResult::getCode()const +{ + return code_; +} + +bool DeleteServiceSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/DeleteZnodeRequest.cc b/mse/src/model/DeleteZnodeRequest.cc new file mode 100644 index 000000000..ff2228891 --- /dev/null +++ b/mse/src/model/DeleteZnodeRequest.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::DeleteZnodeRequest; + +DeleteZnodeRequest::DeleteZnodeRequest() + : RpcServiceRequest("mse", "2019-05-31", "DeleteZnode") { + setMethod(HttpRequest::Method::Post); +} + +DeleteZnodeRequest::~DeleteZnodeRequest() {} + +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_; +} + +void DeleteZnodeRequest::setPath(const std::string &path) { + path_ = path; + setParameter(std::string("Path"), path); +} + +std::string DeleteZnodeRequest::getRequestPars() const { + return requestPars_; +} + +void DeleteZnodeRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string DeleteZnodeRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DeleteZnodeRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/DeleteZnodeResult.cc b/mse/src/model/DeleteZnodeResult.cc new file mode 100644 index 000000000..398c41a3c --- /dev/null +++ b/mse/src/model/DeleteZnodeResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +DeleteZnodeResult::DeleteZnodeResult() : + ServiceResult() +{} + +DeleteZnodeResult::DeleteZnodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteZnodeResult::~DeleteZnodeResult() +{} + +void DeleteZnodeResult::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["Data"].isNull()) + data_.data = dataNode["Data"].asString(); + if(!dataNode["Path"].isNull()) + data_.path = dataNode["Path"].asString(); + if(!dataNode["Dir"].isNull()) + data_.dir = dataNode["Dir"].asString() == "true"; + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].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 DeleteZnodeResult::getHttpCode()const +{ + return httpCode_; +} + +std::string DeleteZnodeResult::getMessage()const +{ + return message_; +} + +DeleteZnodeResult::Data DeleteZnodeResult::getData()const +{ + return data_; +} + +std::string DeleteZnodeResult::getErrorCode()const +{ + return errorCode_; +} + +bool DeleteZnodeResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ExportNacosConfigRequest.cc b/mse/src/model/ExportNacosConfigRequest.cc new file mode 100644 index 000000000..b3598d50e --- /dev/null +++ b/mse/src/model/ExportNacosConfigRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::ExportNacosConfigRequest; + +ExportNacosConfigRequest::ExportNacosConfigRequest() + : RpcServiceRequest("mse", "2019-05-31", "ExportNacosConfig") { + setMethod(HttpRequest::Method::Post); +} + +ExportNacosConfigRequest::~ExportNacosConfigRequest() {} + +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::getAppName() const { + return appName_; +} + +void ExportNacosConfigRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string ExportNacosConfigRequest::getNamespaceId() const { + return namespaceId_; +} + +void ExportNacosConfigRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string ExportNacosConfigRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ExportNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string ExportNacosConfigRequest::getIds() const { + return ids_; +} + +void ExportNacosConfigRequest::setIds(const std::string &ids) { + ids_ = 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/ExportNacosConfigResult.cc b/mse/src/model/ExportNacosConfigResult.cc new file mode 100644 index 000000000..95a036bf5 --- /dev/null +++ b/mse/src/model/ExportNacosConfigResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +ExportNacosConfigResult::ExportNacosConfigResult() : + ServiceResult() +{} + +ExportNacosConfigResult::ExportNacosConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExportNacosConfigResult::~ExportNacosConfigResult() +{} + +void ExportNacosConfigResult::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["Url"].isNull()) + data_.url = dataNode["Url"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string ExportNacosConfigResult::getMessage()const +{ + return message_; +} + +int ExportNacosConfigResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ExportNacosConfigResult::Data ExportNacosConfigResult::getData()const +{ + return data_; +} + +std::string ExportNacosConfigResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ExportNacosConfigResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int ExportNacosConfigResult::getCode()const +{ + return code_; +} + +bool ExportNacosConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetBlackWhiteListRequest.cc b/mse/src/model/GetBlackWhiteListRequest.cc new file mode 100644 index 000000000..9afcdd3e7 --- /dev/null +++ b/mse/src/model/GetBlackWhiteListRequest.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::GetBlackWhiteListRequest; + +GetBlackWhiteListRequest::GetBlackWhiteListRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetBlackWhiteList") { + setMethod(HttpRequest::Method::Get); +} + +GetBlackWhiteListRequest::~GetBlackWhiteListRequest() {} + +std::string GetBlackWhiteListRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void GetBlackWhiteListRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string GetBlackWhiteListRequest::getType() const { + return type_; +} + +void GetBlackWhiteListRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string GetBlackWhiteListRequest::getResourceType() const { + return resourceType_; +} + +void GetBlackWhiteListRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string GetBlackWhiteListRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetBlackWhiteListRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/GetBlackWhiteListResult.cc b/mse/src/model/GetBlackWhiteListResult.cc new file mode 100644 index 000000000..96c4b3a4c --- /dev/null +++ b/mse/src/model/GetBlackWhiteListResult.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; + +GetBlackWhiteListResult::GetBlackWhiteListResult() : + ServiceResult() +{} + +GetBlackWhiteListResult::GetBlackWhiteListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBlackWhiteListResult::~GetBlackWhiteListResult() +{} + +void GetBlackWhiteListResult::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["ResourceId"].isNull()) + data_.resourceId = std::stol(dataNode["ResourceId"].asString()); + if(!dataNode["ResourceType"].isNull()) + data_.resourceType = dataNode["ResourceType"].asString(); + if(!dataNode["Content"].isNull()) + data_.content = dataNode["Content"].asString(); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + if(!dataNode["IsWhite"].isNull()) + data_.isWhite = dataNode["IsWhite"].asString() == "true"; + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["GatewayId"].isNull()) + data_.gatewayId = std::stol(dataNode["GatewayId"].asString()); + if(!dataNode["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = dataNode["GmtCreate"].asString(); + if(!dataNode["GmtModified"].isNull()) + data_.gmtModified = dataNode["GmtModified"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetBlackWhiteListResult::getMessage()const +{ + return message_; +} + +int GetBlackWhiteListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetBlackWhiteListResult::Data GetBlackWhiteListResult::getData()const +{ + return data_; +} + +int GetBlackWhiteListResult::getCode()const +{ + return code_; +} + +bool GetBlackWhiteListResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetEngineNamepaceRequest.cc b/mse/src/model/GetEngineNamepaceRequest.cc new file mode 100644 index 000000000..7ef65d0ea --- /dev/null +++ b/mse/src/model/GetEngineNamepaceRequest.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::GetEngineNamepaceRequest; + +GetEngineNamepaceRequest::GetEngineNamepaceRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetEngineNamepace") { + setMethod(HttpRequest::Method::Post); +} + +GetEngineNamepaceRequest::~GetEngineNamepaceRequest() {} + +std::string GetEngineNamepaceRequest::getClusterId() const { + return clusterId_; +} + +void GetEngineNamepaceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string GetEngineNamepaceRequest::getInstanceId() const { + return instanceId_; +} + +void GetEngineNamepaceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string GetEngineNamepaceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetEngineNamepaceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + 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/GetEngineNamepaceResult.cc b/mse/src/model/GetEngineNamepaceResult.cc new file mode 100644 index 000000000..05c8e6b93 --- /dev/null +++ b/mse/src/model/GetEngineNamepaceResult.cc @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +GetEngineNamepaceResult::GetEngineNamepaceResult() : + ServiceResult() +{} + +GetEngineNamepaceResult::GetEngineNamepaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEngineNamepaceResult::~GetEngineNamepaceResult() +{} + +void GetEngineNamepaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["Quota"].isNull()) + quota_ = value["Quota"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ConfigCount"].isNull()) + configCount_ = value["ConfigCount"].asString(); + if(!value["NamespaceShowName"].isNull()) + namespaceShowName_ = value["NamespaceShowName"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["NamespaceDesc"].isNull()) + namespaceDesc_ = value["NamespaceDesc"].asString(); + if(!value["Namespace"].isNull()) + _namespace_ = value["Namespace"].asString(); + +} + +std::string GetEngineNamepaceResult::getHttpCode()const +{ + return httpCode_; +} + +std::string GetEngineNamepaceResult::getType()const +{ + return type_; +} + +std::string GetEngineNamepaceResult::getQuota()const +{ + return quota_; +} + +std::string GetEngineNamepaceResult::getMessage()const +{ + return message_; +} + +std::string GetEngineNamepaceResult::getConfigCount()const +{ + return configCount_; +} + +std::string GetEngineNamepaceResult::getNamespaceShowName()const +{ + return namespaceShowName_; +} + +std::string GetEngineNamepaceResult::get_Namespace()const +{ + return _namespace_; +} + +std::string GetEngineNamepaceResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetEngineNamepaceResult::getSuccess()const +{ + return success_; +} + +std::string GetEngineNamepaceResult::getNamespaceDesc()const +{ + return namespaceDesc_; +} + diff --git a/mse/src/model/GetGatewayDomainDetailRequest.cc b/mse/src/model/GetGatewayDomainDetailRequest.cc new file mode 100644 index 000000000..86c350fb5 --- /dev/null +++ b/mse/src/model/GetGatewayDomainDetailRequest.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::GetGatewayDomainDetailRequest; + +GetGatewayDomainDetailRequest::GetGatewayDomainDetailRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetGatewayDomainDetail") { + setMethod(HttpRequest::Method::Get); +} + +GetGatewayDomainDetailRequest::~GetGatewayDomainDetailRequest() {} + +std::string GetGatewayDomainDetailRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void GetGatewayDomainDetailRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + 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_; +} + +void GetGatewayDomainDetailRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("Id"), id); +} + diff --git a/mse/src/model/GetGatewayDomainDetailResult.cc b/mse/src/model/GetGatewayDomainDetailResult.cc new file mode 100644 index 000000000..676e90c7b --- /dev/null +++ b/mse/src/model/GetGatewayDomainDetailResult.cc @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +GetGatewayDomainDetailResult::GetGatewayDomainDetailResult() : + ServiceResult() +{} + +GetGatewayDomainDetailResult::GetGatewayDomainDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGatewayDomainDetailResult::~GetGatewayDomainDetailResult() +{} + +void GetGatewayDomainDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!dataNode["GatewayId"].isNull()) + data_.gatewayId = std::stol(dataNode["GatewayId"].asString()); + if(!dataNode["Protocol"].isNull()) + data_.protocol = dataNode["Protocol"].asString(); + if(!dataNode["MustHttps"].isNull()) + data_.mustHttps = dataNode["MustHttps"].asString() == "true"; + if(!dataNode["CertIdentifier"].isNull()) + data_.certIdentifier = std::stoi(dataNode["CertIdentifier"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = dataNode["GmtCreate"].asString(); + if(!dataNode["GmtModified"].isNull()) + data_.gmtModified = dataNode["GmtModified"].asString(); + if(!dataNode["CertName"].isNull()) + data_.certName = dataNode["CertName"].asString(); + if(!dataNode["CommonName"].isNull()) + data_.commonName = dataNode["CommonName"].asString(); + if(!dataNode["Sans"].isNull()) + data_.sans = dataNode["Sans"].asString(); + if(!dataNode["BeforeDate"].isNull()) + data_.beforeDate = std::stol(dataNode["BeforeDate"].asString()); + if(!dataNode["AfterDate"].isNull()) + data_.afterDate = std::stol(dataNode["AfterDate"].asString()); + if(!dataNode["Algorithm"].isNull()) + data_.algorithm = dataNode["Algorithm"].asString(); + if(!dataNode["Issuer"].isNull()) + data_.issuer = dataNode["Issuer"].asString(); + if(!dataNode["GmtBefore"].isNull()) + data_.gmtBefore = dataNode["GmtBefore"].asString(); + if(!dataNode["GmtAfter"].isNull()) + data_.gmtAfter = dataNode["GmtAfter"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetGatewayDomainDetailResult::getMessage()const +{ + return message_; +} + +int GetGatewayDomainDetailResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetGatewayDomainDetailResult::Data GetGatewayDomainDetailResult::getData()const +{ + return data_; +} + +int GetGatewayDomainDetailResult::getCode()const +{ + return code_; +} + +bool GetGatewayDomainDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetGatewayOptionRequest.cc b/mse/src/model/GetGatewayOptionRequest.cc new file mode 100644 index 000000000..deaf5635e --- /dev/null +++ b/mse/src/model/GetGatewayOptionRequest.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::GetGatewayOptionRequest; + +GetGatewayOptionRequest::GetGatewayOptionRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetGatewayOption") { + setMethod(HttpRequest::Method::Post); +} + +GetGatewayOptionRequest::~GetGatewayOptionRequest() {} + +std::string GetGatewayOptionRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void GetGatewayOptionRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string GetGatewayOptionRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetGatewayOptionRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +long GetGatewayOptionRequest::getGatewayId() const { + return gatewayId_; +} + +void GetGatewayOptionRequest::setGatewayId(long gatewayId) { + gatewayId_ = gatewayId; + setParameter(std::string("GatewayId"), std::to_string(gatewayId)); +} + diff --git a/mse/src/model/GetGatewayOptionResult.cc b/mse/src/model/GetGatewayOptionResult.cc new file mode 100644 index 000000000..4641df22d --- /dev/null +++ b/mse/src/model/GetGatewayOptionResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +GetGatewayOptionResult::GetGatewayOptionResult() : + ServiceResult() +{} + +GetGatewayOptionResult::GetGatewayOptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGatewayOptionResult::~GetGatewayOptionResult() +{} + +void GetGatewayOptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto traceDetailsNode = dataNode["TraceDetails"]; + if(!traceDetailsNode["TraceEnabled"].isNull()) + data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true"; + if(!traceDetailsNode["Sample"].isNull()) + data_.traceDetails.sample = std::stol(traceDetailsNode["Sample"].asString()); + auto logConfigDetailsNode = dataNode["LogConfigDetails"]; + if(!logConfigDetailsNode["LogEnabled"].isNull()) + data_.logConfigDetails.logEnabled = logConfigDetailsNode["LogEnabled"].asString() == "true"; + if(!logConfigDetailsNode["ProjectName"].isNull()) + data_.logConfigDetails.projectName = logConfigDetailsNode["ProjectName"].asString(); + if(!logConfigDetailsNode["LogStoreName"].isNull()) + data_.logConfigDetails.logStoreName = logConfigDetailsNode["LogStoreName"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetGatewayOptionResult::getMessage()const +{ + return message_; +} + +int GetGatewayOptionResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetGatewayOptionResult::Data GetGatewayOptionResult::getData()const +{ + return data_; +} + +int GetGatewayOptionResult::getCode()const +{ + return code_; +} + +bool GetGatewayOptionResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetGatewayRequest.cc b/mse/src/model/GetGatewayRequest.cc new file mode 100644 index 000000000..9883d2a0e --- /dev/null +++ b/mse/src/model/GetGatewayRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::GetGatewayRequest; + +GetGatewayRequest::GetGatewayRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetGateway") { + setMethod(HttpRequest::Method::Get); +} + +GetGatewayRequest::~GetGatewayRequest() {} + +std::string GetGatewayRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void GetGatewayRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string GetGatewayRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetGatewayRequest::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 new file mode 100644 index 000000000..f99a95666 --- /dev/null +++ b/mse/src/model/GetGatewayResult.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; + +GetGatewayResult::GetGatewayResult() : + ServiceResult() +{} + +GetGatewayResult::GetGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGatewayResult::~GetGatewayResult() +{} + +void GetGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!dataNode["Region"].isNull()) + data_.region = dataNode["Region"].asString(); + if(!dataNode["PrimaryUser"].isNull()) + data_.primaryUser = dataNode["PrimaryUser"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["Vpc"].isNull()) + data_.vpc = dataNode["Vpc"].asString(); + if(!dataNode["Vswitch"].isNull()) + data_.vswitch = dataNode["Vswitch"].asString(); + if(!dataNode["SecurityGroup"].isNull()) + data_.securityGroup = dataNode["SecurityGroup"].asString(); + if(!dataNode["Spec"].isNull()) + data_.spec = dataNode["Spec"].asString(); + if(!dataNode["Replica"].isNull()) + data_.replica = std::stoi(dataNode["Replica"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = dataNode["GmtCreate"].asString(); + if(!dataNode["GmtModified"].isNull()) + data_.gmtModified = dataNode["GmtModified"].asString(); + if(!dataNode["Vswitch2"].isNull()) + data_.vswitch2 = dataNode["Vswitch2"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["ChargeType"].isNull()) + data_.chargeType = dataNode["ChargeType"].asString(); + if(!dataNode["EndDate"].isNull()) + data_.endDate = dataNode["EndDate"].asString(); + auto xtraceDetailsNode = dataNode["XtraceDetails"]; + if(!xtraceDetailsNode["Sample"].isNull()) + data_.xtraceDetails.sample = std::stoi(xtraceDetailsNode["Sample"].asString()); + if(!xtraceDetailsNode["TraceOn"].isNull()) + data_.xtraceDetails.traceOn = xtraceDetailsNode["TraceOn"].asString() == "true"; + auto logConfigDetailsNode = dataNode["LogConfigDetails"]; + if(!logConfigDetailsNode["LogEnabled"].isNull()) + data_.logConfigDetails.logEnabled = logConfigDetailsNode["LogEnabled"].asString() == "true"; + if(!logConfigDetailsNode["ProjectName"].isNull()) + data_.logConfigDetails.projectName = logConfigDetailsNode["ProjectName"].asString(); + if(!logConfigDetailsNode["LogStoreName"].isNull()) + data_.logConfigDetails.logStoreName = logConfigDetailsNode["LogStoreName"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetGatewayResult::getMessage()const +{ + return message_; +} + +int GetGatewayResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetGatewayResult::Data GetGatewayResult::getData()const +{ + return data_; +} + +int GetGatewayResult::getCode()const +{ + return code_; +} + +bool GetGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetGatewayServiceDetailRequest.cc b/mse/src/model/GetGatewayServiceDetailRequest.cc new file mode 100644 index 000000000..a922490c6 --- /dev/null +++ b/mse/src/model/GetGatewayServiceDetailRequest.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::GetGatewayServiceDetailRequest; + +GetGatewayServiceDetailRequest::GetGatewayServiceDetailRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetGatewayServiceDetail") { + setMethod(HttpRequest::Method::Get); +} + +GetGatewayServiceDetailRequest::~GetGatewayServiceDetailRequest() {} + +std::string GetGatewayServiceDetailRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void GetGatewayServiceDetailRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string GetGatewayServiceDetailRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetGatewayServiceDetailRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +long GetGatewayServiceDetailRequest::getServiceId() const { + return serviceId_; +} + +void GetGatewayServiceDetailRequest::setServiceId(long serviceId) { + serviceId_ = serviceId; + setParameter(std::string("ServiceId"), std::to_string(serviceId)); +} + diff --git a/mse/src/model/GetGatewayServiceDetailResult.cc b/mse/src/model/GetGatewayServiceDetailResult.cc new file mode 100644 index 000000000..b8996eca2 --- /dev/null +++ b/mse/src/model/GetGatewayServiceDetailResult.cc @@ -0,0 +1,176 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +GetGatewayServiceDetailResult::GetGatewayServiceDetailResult() : + ServiceResult() +{} + +GetGatewayServiceDetailResult::GetGatewayServiceDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGatewayServiceDetailResult::~GetGatewayServiceDetailResult() +{} + +void GetGatewayServiceDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["GatewayUniqueId"].isNull()) + data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString(); + if(!dataNode["GatewayId"].isNull()) + data_.gatewayId = std::stol(dataNode["GatewayId"].asString()); + if(!dataNode["SourceType"].isNull()) + data_.sourceType = dataNode["SourceType"].asString(); + if(!dataNode["Namespace"].isNull()) + data_._namespace = dataNode["Namespace"].asString(); + if(!dataNode["GroupName"].isNull()) + data_.groupName = dataNode["GroupName"].asString(); + if(!dataNode["SourceId"].isNull()) + data_.sourceId = std::stol(dataNode["SourceId"].asString()); + if(!dataNode["ServiceNameInRegistry"].isNull()) + data_.serviceNameInRegistry = dataNode["ServiceNameInRegistry"].asString(); + if(!dataNode["MetaInfo"].isNull()) + data_.metaInfo = dataNode["MetaInfo"].asString(); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = dataNode["GmtCreate"].asString(); + if(!dataNode["GmtModified"].isNull()) + data_.gmtModified = dataNode["GmtModified"].asString(); + auto allVersionsNode = dataNode["Versions"]["VersionsItem"]; + for (auto dataNodeVersionsVersionsItem : allVersionsNode) + { + Data::VersionsItem versionsItemObject; + if(!dataNodeVersionsVersionsItem["Label"].isNull()) + versionsItemObject.label = dataNodeVersionsVersionsItem["Label"].asString(); + if(!dataNodeVersionsVersionsItem["Value"].isNull()) + versionsItemObject.value = dataNodeVersionsVersionsItem["Value"].asString(); + if(!dataNodeVersionsVersionsItem["Type"].isNull()) + versionsItemObject.type = dataNodeVersionsVersionsItem["Type"].asString(); + data_.versions.push_back(versionsItemObject); + } + auto allLabelDetailsNode = dataNode["LabelDetails"]["LabelDetailsItem"]; + for (auto dataNodeLabelDetailsLabelDetailsItem : allLabelDetailsNode) + { + Data::LabelDetailsItem labelDetailsItemObject; + if(!dataNodeLabelDetailsLabelDetailsItem["Key"].isNull()) + labelDetailsItemObject.key = dataNodeLabelDetailsLabelDetailsItem["Key"].asString(); + auto allValues = value["Values"]["values"]; + for (auto value : allValues) + labelDetailsItemObject.values.push_back(value.asString()); + data_.labelDetails.push_back(labelDetailsItemObject); + } + auto allVersionDetailsNode = dataNode["VersionDetails"]["VersionDetailsItem"]; + for (auto dataNodeVersionDetailsVersionDetailsItem : allVersionDetailsNode) + { + Data::VersionDetailsItem versionDetailsItemObject; + if(!dataNodeVersionDetailsVersionDetailsItem["EndpointNum"].isNull()) + versionDetailsItemObject.endpointNum = std::stoi(dataNodeVersionDetailsVersionDetailsItem["EndpointNum"].asString()); + if(!dataNodeVersionDetailsVersionDetailsItem["EndpointNumPercent"].isNull()) + versionDetailsItemObject.endpointNumPercent = dataNodeVersionDetailsVersionDetailsItem["EndpointNumPercent"].asString(); + auto serviceVersionNode = value["ServiceVersion"]; + if(!serviceVersionNode["Name"].isNull()) + versionDetailsItemObject.serviceVersion.name = serviceVersionNode["Name"].asString(); + auto allLabelsNode = serviceVersionNode["Labels"]["LabelsItem"]; + for (auto serviceVersionNodeLabelsLabelsItem : allLabelsNode) + { + Data::VersionDetailsItem::ServiceVersion::LabelsItem labelsItemObject; + if(!serviceVersionNodeLabelsLabelsItem["Key"].isNull()) + labelsItemObject.key = serviceVersionNodeLabelsLabelsItem["Key"].asString(); + if(!serviceVersionNodeLabelsLabelsItem["Value"].isNull()) + labelsItemObject.value = serviceVersionNodeLabelsLabelsItem["Value"].asString(); + versionDetailsItemObject.serviceVersion.labels.push_back(labelsItemObject); + } + data_.versionDetails.push_back(versionDetailsItemObject); + } + auto gatewayTrafficPolicyNode = dataNode["GatewayTrafficPolicy"]; + auto tlsSettingNode = gatewayTrafficPolicyNode["TlsSetting"]; + if(!tlsSettingNode["TlsMode"].isNull()) + data_.gatewayTrafficPolicy.tlsSetting.tlsMode = tlsSettingNode["TlsMode"].asString(); + if(!tlsSettingNode["CertId"].isNull()) + data_.gatewayTrafficPolicy.tlsSetting.certId = tlsSettingNode["CertId"].asString(); + if(!tlsSettingNode["CaCertContent"].isNull()) + data_.gatewayTrafficPolicy.tlsSetting.caCertContent = tlsSettingNode["CaCertContent"].asString(); + if(!tlsSettingNode["Sni"].isNull()) + data_.gatewayTrafficPolicy.tlsSetting.sni = tlsSettingNode["Sni"].asString(); + auto loadBalancerSettingsNode = gatewayTrafficPolicyNode["LoadBalancerSettings"]; + if(!loadBalancerSettingsNode["LoadbalancerType"].isNull()) + data_.gatewayTrafficPolicy.loadBalancerSettings.loadbalancerType = loadBalancerSettingsNode["LoadbalancerType"].asString(); + auto consistentHashLBConfigNode = loadBalancerSettingsNode["ConsistentHashLBConfig"]; + if(!consistentHashLBConfigNode["ParameterName"].isNull()) + data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.parameterName = consistentHashLBConfigNode["ParameterName"].asString(); + if(!consistentHashLBConfigNode["ConsistentHashLBType"].isNull()) + data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.consistentHashLBType = consistentHashLBConfigNode["ConsistentHashLBType"].asString(); + auto httpCookieNode = consistentHashLBConfigNode["HttpCookie"]; + if(!httpCookieNode["Name"].isNull()) + data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.name = httpCookieNode["Name"].asString(); + if(!httpCookieNode["Path"].isNull()) + data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.path = httpCookieNode["Path"].asString(); + if(!httpCookieNode["TTL"].isNull()) + data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.tTL = httpCookieNode["TTL"].asString(); + auto allIps = dataNode["Ips"]["Ips"]; + for (auto value : allIps) + data_.ips.push_back(value.asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetGatewayServiceDetailResult::getMessage()const +{ + return message_; +} + +int GetGatewayServiceDetailResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetGatewayServiceDetailResult::Data GetGatewayServiceDetailResult::getData()const +{ + return data_; +} + +int GetGatewayServiceDetailResult::getCode()const +{ + return code_; +} + +bool GetGatewayServiceDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetGovernanceKubernetesClusterListRequest.cc b/mse/src/model/GetGovernanceKubernetesClusterListRequest.cc new file mode 100644 index 000000000..f427016ad --- /dev/null +++ b/mse/src/model/GetGovernanceKubernetesClusterListRequest.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::GetGovernanceKubernetesClusterListRequest; + +GetGovernanceKubernetesClusterListRequest::GetGovernanceKubernetesClusterListRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetGovernanceKubernetesClusterList") { + setMethod(HttpRequest::Method::Post); +} + +GetGovernanceKubernetesClusterListRequest::~GetGovernanceKubernetesClusterListRequest() {} + +std::string GetGovernanceKubernetesClusterListRequest::getClusterName() const { + return clusterName_; +} + +void GetGovernanceKubernetesClusterListRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + setParameter(std::string("ClusterName"), clusterName); +} + +std::string GetGovernanceKubernetesClusterListRequest::getClusterId() const { + return clusterId_; +} + +void GetGovernanceKubernetesClusterListRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int GetGovernanceKubernetesClusterListRequest::getPageNumber() const { + return pageNumber_; +} + +void GetGovernanceKubernetesClusterListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int GetGovernanceKubernetesClusterListRequest::getPageSize() const { + return pageSize_; +} + +void GetGovernanceKubernetesClusterListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string GetGovernanceKubernetesClusterListRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetGovernanceKubernetesClusterListRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/GetGovernanceKubernetesClusterListResult.cc b/mse/src/model/GetGovernanceKubernetesClusterListResult.cc new file mode 100644 index 000000000..b092fb0a1 --- /dev/null +++ b/mse/src/model/GetGovernanceKubernetesClusterListResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +GetGovernanceKubernetesClusterListResult::GetGovernanceKubernetesClusterListResult() : + ServiceResult() +{} + +GetGovernanceKubernetesClusterListResult::GetGovernanceKubernetesClusterListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGovernanceKubernetesClusterListResult::~GetGovernanceKubernetesClusterListResult() +{} + +void GetGovernanceKubernetesClusterListResult::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"]["ClusterList"]; + for (auto dataNodeResultClusterList : allResultNode) + { + Data::ClusterList clusterListObject; + if(!dataNodeResultClusterList["ClusterName"].isNull()) + clusterListObject.clusterName = dataNodeResultClusterList["ClusterName"].asString(); + if(!dataNodeResultClusterList["ClusterId"].isNull()) + clusterListObject.clusterId = dataNodeResultClusterList["ClusterId"].asString(); + if(!dataNodeResultClusterList["Region"].isNull()) + clusterListObject.region = dataNodeResultClusterList["Region"].asString(); + if(!dataNodeResultClusterList["K8sVersion"].isNull()) + clusterListObject.k8sVersion = dataNodeResultClusterList["K8sVersion"].asString(); + if(!dataNodeResultClusterList["NamespaceInfos"].isNull()) + clusterListObject.namespaceInfos = dataNodeResultClusterList["NamespaceInfos"].asString(); + if(!dataNodeResultClusterList["PilotStartTime"].isNull()) + 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"; + +} + +std::string GetGovernanceKubernetesClusterListResult::getMessage()const +{ + return message_; +} + +int GetGovernanceKubernetesClusterListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetGovernanceKubernetesClusterListResult::Data GetGovernanceKubernetesClusterListResult::getData()const +{ + return data_; +} + +int GetGovernanceKubernetesClusterListResult::getCode()const +{ + return code_; +} + +bool GetGovernanceKubernetesClusterListResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetGovernanceKubernetesClusterRequest.cc b/mse/src/model/GetGovernanceKubernetesClusterRequest.cc new file mode 100644 index 000000000..2a4ec278a --- /dev/null +++ b/mse/src/model/GetGovernanceKubernetesClusterRequest.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::GetGovernanceKubernetesClusterRequest; + +GetGovernanceKubernetesClusterRequest::GetGovernanceKubernetesClusterRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetGovernanceKubernetesCluster") { + setMethod(HttpRequest::Method::Post); +} + +GetGovernanceKubernetesClusterRequest::~GetGovernanceKubernetesClusterRequest() {} + +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_; +} + +void GetGovernanceKubernetesClusterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetGovernanceKubernetesClusterRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetGovernanceKubernetesClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/GetGovernanceKubernetesClusterResult.cc b/mse/src/model/GetGovernanceKubernetesClusterResult.cc new file mode 100644 index 000000000..69526e75d --- /dev/null +++ b/mse/src/model/GetGovernanceKubernetesClusterResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +GetGovernanceKubernetesClusterResult::GetGovernanceKubernetesClusterResult() : + ServiceResult() +{} + +GetGovernanceKubernetesClusterResult::GetGovernanceKubernetesClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGovernanceKubernetesClusterResult::~GetGovernanceKubernetesClusterResult() +{} + +void GetGovernanceKubernetesClusterResult::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["ClusterId"].isNull()) + data_.clusterId = dataNode["ClusterId"].asString(); + if(!dataNode["ClusterName"].isNull()) + data_.clusterName = dataNode["ClusterName"].asString(); + if(!dataNode["Region"].isNull()) + data_.region = dataNode["Region"].asString(); + if(!dataNode["K8sVersion"].isNull()) + data_.k8sVersion = dataNode["K8sVersion"].asString(); + if(!dataNode["NamespaceInfos"].isNull()) + data_.namespaceInfos = dataNode["NamespaceInfos"].asString(); + if(!dataNode["PilotStartTime"].isNull()) + data_.pilotStartTime = dataNode["PilotStartTime"].asString(); + if(!dataNode["UpdateTime"].isNull()) + data_.updateTime = dataNode["UpdateTime"].asString(); + auto allNamespacesNode = dataNode["Namespaces"]["KubernetesNamespace"]; + for (auto dataNodeNamespacesKubernetesNamespace : allNamespacesNode) + { + Data::KubernetesNamespace kubernetesNamespaceObject; + if(!dataNodeNamespacesKubernetesNamespace["Name"].isNull()) + kubernetesNamespaceObject.name = dataNodeNamespacesKubernetesNamespace["Name"].asString(); + if(!dataNodeNamespacesKubernetesNamespace["Tags"].isNull()) + kubernetesNamespaceObject.tags = dataNodeNamespacesKubernetesNamespace["Tags"].asString(); + data_.namespaces.push_back(kubernetesNamespaceObject); + } + 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 GetGovernanceKubernetesClusterResult::getMessage()const +{ + return message_; +} + +int GetGovernanceKubernetesClusterResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetGovernanceKubernetesClusterResult::Data GetGovernanceKubernetesClusterResult::getData()const +{ + return data_; +} + +int GetGovernanceKubernetesClusterResult::getCode()const +{ + return code_; +} + +bool GetGovernanceKubernetesClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetImageRequest.cc b/mse/src/model/GetImageRequest.cc new file mode 100644 index 000000000..aa4f34c6d --- /dev/null +++ b/mse/src/model/GetImageRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::GetImageRequest; + +GetImageRequest::GetImageRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetImage") { + setMethod(HttpRequest::Method::Post); +} + +GetImageRequest::~GetImageRequest() {} + +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_; +} + +void GetImageRequest::setVersionCode(const std::string &versionCode) { + versionCode_ = versionCode; + setParameter(std::string("VersionCode"), versionCode); +} + diff --git a/mse/src/model/GetImageResult.cc b/mse/src/model/GetImageResult.cc new file mode 100644 index 000000000..4a379be4a --- /dev/null +++ b/mse/src/model/GetImageResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +GetImageResult::GetImageResult() : + ServiceResult() +{} + +GetImageResult::GetImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetImageResult::~GetImageResult() +{} + +void GetImageResult::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["CurrentVersionFullShowName"].isNull()) + data_.currentVersionFullShowName = dataNode["CurrentVersionFullShowName"].asString(); + if(!dataNode["MaxVersionCode"].isNull()) + data_.maxVersionCode = dataNode["MaxVersionCode"].asString(); + if(!dataNode["MaxVersionFullShowName"].isNull()) + data_.maxVersionFullShowName = dataNode["MaxVersionFullShowName"].asString(); + if(!dataNode["MaxVersionChangelogUrl"].isNull()) + data_.maxVersionChangelogUrl = dataNode["MaxVersionChangelogUrl"].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 GetImageResult::getHttpCode()const +{ + return httpCode_; +} + +std::string GetImageResult::getMessage()const +{ + return message_; +} + +GetImageResult::Data GetImageResult::getData()const +{ + return data_; +} + +std::string GetImageResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetImageResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetImportFileUrlRequest.cc b/mse/src/model/GetImportFileUrlRequest.cc new file mode 100644 index 000000000..49916ff30 --- /dev/null +++ b/mse/src/model/GetImportFileUrlRequest.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::GetImportFileUrlRequest; + +GetImportFileUrlRequest::GetImportFileUrlRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetImportFileUrl") { + setMethod(HttpRequest::Method::Post); +} + +GetImportFileUrlRequest::~GetImportFileUrlRequest() {} + +std::string GetImportFileUrlRequest::getContentType() const { + return contentType_; +} + +void GetImportFileUrlRequest::setContentType(const std::string &contentType) { + contentType_ = contentType; + setParameter(std::string("ContentType"), contentType); +} + +std::string GetImportFileUrlRequest::getInstanceId() const { + return instanceId_; +} + +void GetImportFileUrlRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = 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_; +} + +void GetImportFileUrlRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/GetImportFileUrlResult.cc b/mse/src/model/GetImportFileUrlResult.cc new file mode 100644 index 000000000..634898a8e --- /dev/null +++ b/mse/src/model/GetImportFileUrlResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +GetImportFileUrlResult::GetImportFileUrlResult() : + ServiceResult() +{} + +GetImportFileUrlResult::GetImportFileUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetImportFileUrlResult::~GetImportFileUrlResult() +{} + +void GetImportFileUrlResult::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["Url"].isNull()) + data_.url = dataNode["Url"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string GetImportFileUrlResult::getMessage()const +{ + return message_; +} + +int GetImportFileUrlResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetImportFileUrlResult::Data GetImportFileUrlResult::getData()const +{ + return data_; +} + +std::string GetImportFileUrlResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetImportFileUrlResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int GetImportFileUrlResult::getCode()const +{ + return code_; +} + +bool GetImportFileUrlResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetKubernetesSourceRequest.cc b/mse/src/model/GetKubernetesSourceRequest.cc new file mode 100644 index 000000000..2222f5c27 --- /dev/null +++ b/mse/src/model/GetKubernetesSourceRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::GetKubernetesSourceRequest; + +GetKubernetesSourceRequest::GetKubernetesSourceRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetKubernetesSource") { + setMethod(HttpRequest::Method::Get); +} + +GetKubernetesSourceRequest::~GetKubernetesSourceRequest() {} + +std::string GetKubernetesSourceRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void GetKubernetesSourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string GetKubernetesSourceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetKubernetesSourceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/GetKubernetesSourceResult.cc b/mse/src/model/GetKubernetesSourceResult.cc new file mode 100644 index 000000000..473652cdc --- /dev/null +++ b/mse/src/model/GetKubernetesSourceResult.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; + +GetKubernetesSourceResult::GetKubernetesSourceResult() : + ServiceResult() +{} + +GetKubernetesSourceResult::GetKubernetesSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetKubernetesSourceResult::~GetKubernetesSourceResult() +{} + +void GetKubernetesSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["K8sSources"]; + for (auto valueDataK8sSources : allDataNode) + { + K8sSources dataObject; + if(!valueDataK8sSources["Name"].isNull()) + dataObject.name = valueDataK8sSources["Name"].asString(); + if(!valueDataK8sSources["Cluster"].isNull()) + dataObject.cluster = valueDataK8sSources["Cluster"].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 GetKubernetesSourceResult::getMessage()const +{ + return message_; +} + +int GetKubernetesSourceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector GetKubernetesSourceResult::getData()const +{ + return data_; +} + +int GetKubernetesSourceResult::getCode()const +{ + return code_; +} + +bool GetKubernetesSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetMseFeatureSwitchRequest.cc b/mse/src/model/GetMseFeatureSwitchRequest.cc new file mode 100644 index 000000000..3840aef9d --- /dev/null +++ b/mse/src/model/GetMseFeatureSwitchRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::GetMseFeatureSwitchRequest; + +GetMseFeatureSwitchRequest::GetMseFeatureSwitchRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetMseFeatureSwitch") { + setMethod(HttpRequest::Method::Post); +} + +GetMseFeatureSwitchRequest::~GetMseFeatureSwitchRequest() {} + +std::string GetMseFeatureSwitchRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetMseFeatureSwitchRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/GetMseFeatureSwitchResult.cc b/mse/src/model/GetMseFeatureSwitchResult.cc new file mode 100644 index 000000000..3d4a52dea --- /dev/null +++ b/mse/src/model/GetMseFeatureSwitchResult.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; + +GetMseFeatureSwitchResult::GetMseFeatureSwitchResult() : + ServiceResult() +{} + +GetMseFeatureSwitchResult::GetMseFeatureSwitchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMseFeatureSwitchResult::~GetMseFeatureSwitchResult() +{} + +void GetMseFeatureSwitchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetMseFeatureSwitchResult::getMessage()const +{ + return message_; +} + +std::string GetMseFeatureSwitchResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetMseFeatureSwitchResult::getSuccess()const +{ + return success_; +} + +std::string GetMseFeatureSwitchResult::getResult()const +{ + return result_; +} + diff --git a/mse/src/model/GetMseSourceRequest.cc b/mse/src/model/GetMseSourceRequest.cc new file mode 100644 index 000000000..308cabfba --- /dev/null +++ b/mse/src/model/GetMseSourceRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::GetMseSourceRequest; + +GetMseSourceRequest::GetMseSourceRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetMseSource") { + setMethod(HttpRequest::Method::Get); +} + +GetMseSourceRequest::~GetMseSourceRequest() {} + +std::string GetMseSourceRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void GetMseSourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string GetMseSourceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetMseSourceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/GetMseSourceResult.cc b/mse/src/model/GetMseSourceResult.cc new file mode 100644 index 000000000..811fb2d47 --- /dev/null +++ b/mse/src/model/GetMseSourceResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +GetMseSourceResult::GetMseSourceResult() : + ServiceResult() +{} + +GetMseSourceResult::GetMseSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMseSourceResult::~GetMseSourceResult() +{} + +void GetMseSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["MseSources"]; + for (auto valueDataMseSources : allDataNode) + { + MseSources dataObject; + if(!valueDataMseSources["InstanceId"].isNull()) + dataObject.instanceId = valueDataMseSources["InstanceId"].asString(); + if(!valueDataMseSources["Address"].isNull()) + dataObject.address = valueDataMseSources["Address"].asString(); + if(!valueDataMseSources["Type"].isNull()) + dataObject.type = valueDataMseSources["Type"].asString(); + if(!valueDataMseSources["Name"].isNull()) + dataObject.name = valueDataMseSources["Name"].asString(); + if(!valueDataMseSources["ClusterId"].isNull()) + dataObject.clusterId = valueDataMseSources["ClusterId"].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 GetMseSourceResult::getMessage()const +{ + return message_; +} + +int GetMseSourceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector GetMseSourceResult::getData()const +{ + return data_; +} + +int GetMseSourceResult::getCode()const +{ + return code_; +} + +bool GetMseSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetNacosConfigRequest.cc b/mse/src/model/GetNacosConfigRequest.cc new file mode 100644 index 000000000..f564d5764 --- /dev/null +++ b/mse/src/model/GetNacosConfigRequest.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::GetNacosConfigRequest; + +GetNacosConfigRequest::GetNacosConfigRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetNacosConfig") { + setMethod(HttpRequest::Method::Post); +} + +GetNacosConfigRequest::~GetNacosConfigRequest() {} + +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_; +} + +void GetNacosConfigRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = 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_; +} + +void GetNacosConfigRequest::setBeta(bool beta) { + beta_ = beta; + setParameter(std::string("Beta"), beta ? "true" : "false"); +} + +std::string GetNacosConfigRequest::getGroup() const { + return group_; +} + +void GetNacosConfigRequest::setGroup(const std::string &group) { + group_ = group; + setParameter(std::string("Group"), group); +} + diff --git a/mse/src/model/GetNacosConfigResult.cc b/mse/src/model/GetNacosConfigResult.cc new file mode 100644 index 000000000..a3d088673 --- /dev/null +++ b/mse/src/model/GetNacosConfigResult.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; + +GetNacosConfigResult::GetNacosConfigResult() : + ServiceResult() +{} + +GetNacosConfigResult::GetNacosConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetNacosConfigResult::~GetNacosConfigResult() +{} + +void GetNacosConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configurationNode = value["Configuration"]; + if(!configurationNode["Type"].isNull()) + configuration_.type = configurationNode["Type"].asString(); + if(!configurationNode["AppName"].isNull()) + configuration_.appName = configurationNode["AppName"].asString(); + if(!configurationNode["Tags"].isNull()) + configuration_.tags = configurationNode["Tags"].asString(); + if(!configurationNode["Md5"].isNull()) + configuration_.md5 = configurationNode["Md5"].asString(); + if(!configurationNode["DataId"].isNull()) + configuration_.dataId = configurationNode["DataId"].asString(); + if(!configurationNode["Content"].isNull()) + configuration_.content = configurationNode["Content"].asString(); + if(!configurationNode["Group"].isNull()) + configuration_.group = configurationNode["Group"].asString(); + if(!configurationNode["Desc"].isNull()) + configuration_.desc = configurationNode["Desc"].asString(); + if(!configurationNode["EncryptedDataKey"].isNull()) + configuration_.encryptedDataKey = configurationNode["EncryptedDataKey"].asString(); + if(!configurationNode["BetaIps"].isNull()) + configuration_.betaIps = configurationNode["BetaIps"].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"; + +} + +GetNacosConfigResult::Configuration GetNacosConfigResult::getConfiguration()const +{ + return configuration_; +} + +std::string GetNacosConfigResult::getMessage()const +{ + return message_; +} + +std::string GetNacosConfigResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetNacosConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetNacosHistoryConfigRequest.cc b/mse/src/model/GetNacosHistoryConfigRequest.cc new file mode 100644 index 000000000..c6288d24d --- /dev/null +++ b/mse/src/model/GetNacosHistoryConfigRequest.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::GetNacosHistoryConfigRequest; + +GetNacosHistoryConfigRequest::GetNacosHistoryConfigRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetNacosHistoryConfig") { + setMethod(HttpRequest::Method::Post); +} + +GetNacosHistoryConfigRequest::~GetNacosHistoryConfigRequest() {} + +std::string GetNacosHistoryConfigRequest::getNid() const { + return nid_; +} + +void GetNacosHistoryConfigRequest::setNid(const std::string &nid) { + nid_ = nid; + setParameter(std::string("Nid"), nid); +} + +std::string GetNacosHistoryConfigRequest::getInstanceId() const { + return instanceId_; +} + +void GetNacosHistoryConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string GetNacosHistoryConfigRequest::getDataId() const { + return dataId_; +} + +void GetNacosHistoryConfigRequest::setDataId(const std::string &dataId) { + dataId_ = 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_; +} + +void GetNacosHistoryConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + 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/GetNacosHistoryConfigResult.cc b/mse/src/model/GetNacosHistoryConfigResult.cc new file mode 100644 index 000000000..4d90de040 --- /dev/null +++ b/mse/src/model/GetNacosHistoryConfigResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +GetNacosHistoryConfigResult::GetNacosHistoryConfigResult() : + ServiceResult() +{} + +GetNacosHistoryConfigResult::GetNacosHistoryConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetNacosHistoryConfigResult::~GetNacosHistoryConfigResult() +{} + +void GetNacosHistoryConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configurationNode = value["Configuration"]; + if(!configurationNode["AppName"].isNull()) + configuration_.appName = configurationNode["AppName"].asString(); + if(!configurationNode["Md5"].isNull()) + configuration_.md5 = configurationNode["Md5"].asString(); + if(!configurationNode["DataId"].isNull()) + configuration_.dataId = configurationNode["DataId"].asString(); + if(!configurationNode["Content"].isNull()) + configuration_.content = configurationNode["Content"].asString(); + if(!configurationNode["Group"].isNull()) + configuration_.group = configurationNode["Group"].asString(); + if(!configurationNode["OpType"].isNull()) + configuration_.opType = configurationNode["OpType"].asString(); + if(!configurationNode["EncryptedDataKey"].isNull()) + configuration_.encryptedDataKey = configurationNode["EncryptedDataKey"].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"; + +} + +GetNacosHistoryConfigResult::Configuration GetNacosHistoryConfigResult::getConfiguration()const +{ + return configuration_; +} + +std::string GetNacosHistoryConfigResult::getMessage()const +{ + return message_; +} + +std::string GetNacosHistoryConfigResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetNacosHistoryConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/GetOverviewRequest.cc b/mse/src/model/GetOverviewRequest.cc new file mode 100644 index 000000000..41ddfdb6b --- /dev/null +++ b/mse/src/model/GetOverviewRequest.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::GetOverviewRequest; + +GetOverviewRequest::GetOverviewRequest() + : RpcServiceRequest("mse", "2019-05-31", "GetOverview") { + setMethod(HttpRequest::Method::Post); +} + +GetOverviewRequest::~GetOverviewRequest() {} + +int GetOverviewRequest::getPeriod() const { + return period_; +} + +void GetOverviewRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); +} + +std::string GetOverviewRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void GetOverviewRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string GetOverviewRequest::getRegion() const { + return region_; +} + +void GetOverviewRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mse/src/model/GetOverviewResult.cc b/mse/src/model/GetOverviewResult.cc new file mode 100644 index 000000000..eb895abde --- /dev/null +++ b/mse/src/model/GetOverviewResult.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; + +GetOverviewResult::GetOverviewResult() : + ServiceResult() +{} + +GetOverviewResult::GetOverviewResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOverviewResult::~GetOverviewResult() +{} + +void GetOverviewResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].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(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetOverviewResult::getMessage()const +{ + return message_; +} + +int GetOverviewResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetOverviewResult::getData()const +{ + return data_; +} + +int GetOverviewResult::getCode()const +{ + return code_; +} + +std::string GetOverviewResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ImportNacosConfigRequest.cc b/mse/src/model/ImportNacosConfigRequest.cc new file mode 100644 index 000000000..7d0832b37 --- /dev/null +++ b/mse/src/model/ImportNacosConfigRequest.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::ImportNacosConfigRequest; + +ImportNacosConfigRequest::ImportNacosConfigRequest() + : RpcServiceRequest("mse", "2019-05-31", "ImportNacosConfig") { + setMethod(HttpRequest::Method::Post); +} + +ImportNacosConfigRequest::~ImportNacosConfigRequest() {} + +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_; +} + +void ImportNacosConfigRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string ImportNacosConfigRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ImportNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string ImportNacosConfigRequest::getFileUrl() const { + return fileUrl_; +} + +void ImportNacosConfigRequest::setFileUrl(const std::string &fileUrl) { + fileUrl_ = 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/ImportNacosConfigResult.cc b/mse/src/model/ImportNacosConfigResult.cc new file mode 100644 index 000000000..88387b242 --- /dev/null +++ b/mse/src/model/ImportNacosConfigResult.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; + +ImportNacosConfigResult::ImportNacosConfigResult() : + ServiceResult() +{} + +ImportNacosConfigResult::ImportNacosConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportNacosConfigResult::~ImportNacosConfigResult() +{} + +void ImportNacosConfigResult::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["SuccCount"].isNull()) + data_.succCount = std::stoi(dataNode["SuccCount"].asString()); + if(!dataNode["SkipCount"].isNull()) + data_.skipCount = std::stoi(dataNode["SkipCount"].asString()); + auto allSkipDataNode = dataNode["SkipData"]["SkipDataItem"]; + for (auto dataNodeSkipDataSkipDataItem : allSkipDataNode) + { + Data::SkipDataItem skipDataItemObject; + if(!dataNodeSkipDataSkipDataItem["DataId"].isNull()) + skipDataItemObject.dataId = dataNodeSkipDataSkipDataItem["DataId"].asString(); + if(!dataNodeSkipDataSkipDataItem["Group"].isNull()) + skipDataItemObject.group = dataNodeSkipDataSkipDataItem["Group"].asString(); + data_.skipData.push_back(skipDataItemObject); + } + auto allFailDataNode = dataNode["FailData"]["FailDataItem"]; + for (auto dataNodeFailDataFailDataItem : allFailDataNode) + { + Data::FailDataItem failDataItemObject; + if(!dataNodeFailDataFailDataItem["DataId"].isNull()) + failDataItemObject.dataId = dataNodeFailDataFailDataItem["DataId"].asString(); + if(!dataNodeFailDataFailDataItem["Group"].isNull()) + failDataItemObject.group = dataNodeFailDataFailDataItem["Group"].asString(); + data_.failData.push_back(failDataItemObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string ImportNacosConfigResult::getMessage()const +{ + return message_; +} + +int ImportNacosConfigResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ImportNacosConfigResult::Data ImportNacosConfigResult::getData()const +{ + return data_; +} + +std::string ImportNacosConfigResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ImportNacosConfigResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int ImportNacosConfigResult::getCode()const +{ + return code_; +} + +bool ImportNacosConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ImportServicesRequest.cc b/mse/src/model/ImportServicesRequest.cc new file mode 100644 index 000000000..a71447a97 --- /dev/null +++ b/mse/src/model/ImportServicesRequest.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::ImportServicesRequest; + +ImportServicesRequest::ImportServicesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ImportServices") { + setMethod(HttpRequest::Method::Post); +} + +ImportServicesRequest::~ImportServicesRequest() {} + +std::string ImportServicesRequest::getSourceId() const { + return sourceId_; +} + +void ImportServicesRequest::setSourceId(const std::string &sourceId) { + sourceId_ = sourceId; + setParameter(std::string("SourceId"), sourceId); +} + +std::string ImportServicesRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void ImportServicesRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::vector ImportServicesRequest::getServiceList() const { + return serviceList_; +} + +void ImportServicesRequest::setServiceList(const std::vector &serviceList) { + serviceList_ = serviceList; + for(int dep1 = 0; dep1 != serviceList.size(); dep1++) { + setParameter(std::string("ServiceList") + "." + std::to_string(dep1 + 1) + ".ServiceProtocol", serviceList[dep1].serviceProtocol); + setParameter(std::string("ServiceList") + "." + std::to_string(dep1 + 1) + ".Name", serviceList[dep1].name); + setParameter(std::string("ServiceList") + "." + std::to_string(dep1 + 1) + ".Namespace", serviceList[dep1]._namespace); + setParameter(std::string("ServiceList") + "." + std::to_string(dep1 + 1) + ".GroupName", serviceList[dep1].groupName); + for(int dep2 = 0; dep2 != serviceList[dep1].ips.size(); dep2++) { + setParameter(std::string("ServiceList") + "." + std::to_string(dep1 + 1) + ".Ips." + std::to_string(dep2 + 1), serviceList[dep1].ips[dep2]); + } + setParameter(std::string("ServiceList") + "." + std::to_string(dep1 + 1) + ".ServicePort", std::to_string(serviceList[dep1].servicePort)); + } +} + +std::string ImportServicesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ImportServicesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string ImportServicesRequest::getSourceType() const { + return sourceType_; +} + +void ImportServicesRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); +} + diff --git a/mse/src/model/ImportServicesResult.cc b/mse/src/model/ImportServicesResult.cc new file mode 100644 index 000000000..72b5f26a7 --- /dev/null +++ b/mse/src/model/ImportServicesResult.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; + +ImportServicesResult::ImportServicesResult() : + ServiceResult() +{} + +ImportServicesResult::ImportServicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportServicesResult::~ImportServicesResult() +{} + +void ImportServicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +std::string ImportServicesResult::getMessage()const +{ + return message_; +} + +int ImportServicesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool ImportServicesResult::getData()const +{ + return data_; +} + +int ImportServicesResult::getCode()const +{ + return code_; +} + +bool ImportServicesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListAlarmContactGroupsRequest.cc b/mse/src/model/ListAlarmContactGroupsRequest.cc new file mode 100644 index 000000000..ab30a9f18 --- /dev/null +++ b/mse/src/model/ListAlarmContactGroupsRequest.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::ListAlarmContactGroupsRequest; + +ListAlarmContactGroupsRequest::ListAlarmContactGroupsRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListAlarmContactGroups") { + setMethod(HttpRequest::Method::Get); +} + +ListAlarmContactGroupsRequest::~ListAlarmContactGroupsRequest() {} + +int ListAlarmContactGroupsRequest::getPageNum() const { + return pageNum_; +} + +void ListAlarmContactGroupsRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +std::string ListAlarmContactGroupsRequest::getRequestPars() const { + return requestPars_; +} + +void ListAlarmContactGroupsRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +int ListAlarmContactGroupsRequest::getPageSize() const { + return pageSize_; +} + +void ListAlarmContactGroupsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAlarmContactGroupsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListAlarmContactGroupsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListAlarmContactGroupsResult.cc b/mse/src/model/ListAlarmContactGroupsResult.cc new file mode 100644 index 000000000..e93a0ee6a --- /dev/null +++ b/mse/src/model/ListAlarmContactGroupsResult.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; + +ListAlarmContactGroupsResult::ListAlarmContactGroupsResult() : + ServiceResult() +{} + +ListAlarmContactGroupsResult::ListAlarmContactGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAlarmContactGroupsResult::~ListAlarmContactGroupsResult() +{} + +void ListAlarmContactGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["AlarmContactGroupModel"]; + for (auto valueDataAlarmContactGroupModel : allDataNode) + { + AlarmContactGroupModel dataObject; + if(!valueDataAlarmContactGroupModel["ContactGroupName"].isNull()) + dataObject.contactGroupName = valueDataAlarmContactGroupModel["ContactGroupName"].asString(); + if(!valueDataAlarmContactGroupModel["ContactGroupId"].isNull()) + dataObject.contactGroupId = valueDataAlarmContactGroupModel["ContactGroupId"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListAlarmContactGroupsResult::getHttpCode()const +{ + return httpCode_; +} + +int ListAlarmContactGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAlarmContactGroupsResult::getMessage()const +{ + return message_; +} + +int ListAlarmContactGroupsResult::getPageSize()const +{ + return pageSize_; +} + +int ListAlarmContactGroupsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListAlarmContactGroupsResult::getData()const +{ + return data_; +} + +std::string ListAlarmContactGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListAlarmContactGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListAlarmHistoriesRequest.cc b/mse/src/model/ListAlarmHistoriesRequest.cc new file mode 100644 index 000000000..3021d3389 --- /dev/null +++ b/mse/src/model/ListAlarmHistoriesRequest.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::ListAlarmHistoriesRequest; + +ListAlarmHistoriesRequest::ListAlarmHistoriesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListAlarmHistories") { + setMethod(HttpRequest::Method::Get); +} + +ListAlarmHistoriesRequest::~ListAlarmHistoriesRequest() {} + +long ListAlarmHistoriesRequest::getEndTime() const { + return endTime_; +} + +void ListAlarmHistoriesRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +std::string ListAlarmHistoriesRequest::getAlarmMseType() const { + return alarmMseType_; +} + +void ListAlarmHistoriesRequest::setAlarmMseType(const std::string &alarmMseType) { + alarmMseType_ = alarmMseType; + setParameter(std::string("AlarmMseType"), alarmMseType); +} + +long ListAlarmHistoriesRequest::getStartTime() const { + return startTime_; +} + +void ListAlarmHistoriesRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +int ListAlarmHistoriesRequest::getPageNum() const { + return pageNum_; +} + +void ListAlarmHistoriesRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +std::string ListAlarmHistoriesRequest::getRequestPars() const { + return requestPars_; +} + +void ListAlarmHistoriesRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +int ListAlarmHistoriesRequest::getPageSize() const { + return pageSize_; +} + +void ListAlarmHistoriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAlarmHistoriesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListAlarmHistoriesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string ListAlarmHistoriesRequest::getAlarmName() const { + return alarmName_; +} + +void ListAlarmHistoriesRequest::setAlarmName(const std::string &alarmName) { + alarmName_ = alarmName; + setParameter(std::string("AlarmName"), alarmName); +} + diff --git a/mse/src/model/ListAlarmHistoriesResult.cc b/mse/src/model/ListAlarmHistoriesResult.cc new file mode 100644 index 000000000..cdfd3f3b1 --- /dev/null +++ b/mse/src/model/ListAlarmHistoriesResult.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; + +ListAlarmHistoriesResult::ListAlarmHistoriesResult() : + ServiceResult() +{} + +ListAlarmHistoriesResult::ListAlarmHistoriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAlarmHistoriesResult::~ListAlarmHistoriesResult() +{} + +void ListAlarmHistoriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["AlarmHistoryModel"]; + for (auto valueDataAlarmHistoryModel : allDataNode) + { + AlarmHistoryModel dataObject; + if(!valueDataAlarmHistoryModel["AlarmTime"].isNull()) + dataObject.alarmTime = valueDataAlarmHistoryModel["AlarmTime"].asString(); + if(!valueDataAlarmHistoryModel["AlarmEmail"].isNull()) + dataObject.alarmEmail = valueDataAlarmHistoryModel["AlarmEmail"].asString(); + if(!valueDataAlarmHistoryModel["AlarmDingDing"].isNull()) + dataObject.alarmDingDing = valueDataAlarmHistoryModel["AlarmDingDing"].asString(); + if(!valueDataAlarmHistoryModel["AlarmPhone"].isNull()) + dataObject.alarmPhone = valueDataAlarmHistoryModel["AlarmPhone"].asString(); + if(!valueDataAlarmHistoryModel["AlarmName"].isNull()) + dataObject.alarmName = valueDataAlarmHistoryModel["AlarmName"].asString(); + if(!valueDataAlarmHistoryModel["AlarmContent"].isNull()) + dataObject.alarmContent = valueDataAlarmHistoryModel["AlarmContent"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListAlarmHistoriesResult::getHttpCode()const +{ + return httpCode_; +} + +int ListAlarmHistoriesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAlarmHistoriesResult::getMessage()const +{ + return message_; +} + +int ListAlarmHistoriesResult::getPageSize()const +{ + return pageSize_; +} + +int ListAlarmHistoriesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListAlarmHistoriesResult::getData()const +{ + return data_; +} + +std::string ListAlarmHistoriesResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListAlarmHistoriesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListAlarmItemsRequest.cc b/mse/src/model/ListAlarmItemsRequest.cc new file mode 100644 index 000000000..335a865be --- /dev/null +++ b/mse/src/model/ListAlarmItemsRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::ListAlarmItemsRequest; + +ListAlarmItemsRequest::ListAlarmItemsRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListAlarmItems") { + setMethod(HttpRequest::Method::Get); +} + +ListAlarmItemsRequest::~ListAlarmItemsRequest() {} + +std::string ListAlarmItemsRequest::getRequestPars() const { + return requestPars_; +} + +void ListAlarmItemsRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string ListAlarmItemsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListAlarmItemsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListAlarmItemsResult.cc b/mse/src/model/ListAlarmItemsResult.cc new file mode 100644 index 000000000..344683533 --- /dev/null +++ b/mse/src/model/ListAlarmItemsResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +ListAlarmItemsResult::ListAlarmItemsResult() : + ServiceResult() +{} + +ListAlarmItemsResult::ListAlarmItemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAlarmItemsResult::~ListAlarmItemsResult() +{} + +void ListAlarmItemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["AlarmItem"]; + for (auto valueDataAlarmItem : allDataNode) + { + AlarmItem dataObject; + if(!valueDataAlarmItem["AlarmDesc"].isNull()) + dataObject.alarmDesc = valueDataAlarmItem["AlarmDesc"].asString(); + if(!valueDataAlarmItem["ClusterType"].isNull()) + dataObject.clusterType = valueDataAlarmItem["ClusterType"].asString(); + if(!valueDataAlarmItem["AlarmCode"].isNull()) + dataObject.alarmCode = valueDataAlarmItem["AlarmCode"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListAlarmItemsResult::getHttpCode()const +{ + return httpCode_; +} + +int ListAlarmItemsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAlarmItemsResult::getMessage()const +{ + return message_; +} + +int ListAlarmItemsResult::getPageSize()const +{ + return pageSize_; +} + +int ListAlarmItemsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListAlarmItemsResult::getData()const +{ + return data_; +} + +std::string ListAlarmItemsResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListAlarmItemsResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListAlarmRulesRequest.cc b/mse/src/model/ListAlarmRulesRequest.cc new file mode 100644 index 000000000..a42051dc1 --- /dev/null +++ b/mse/src/model/ListAlarmRulesRequest.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::ListAlarmRulesRequest; + +ListAlarmRulesRequest::ListAlarmRulesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListAlarmRules") { + setMethod(HttpRequest::Method::Get); +} + +ListAlarmRulesRequest::~ListAlarmRulesRequest() {} + +std::string ListAlarmRulesRequest::getAlarmMseType() const { + return alarmMseType_; +} + +void ListAlarmRulesRequest::setAlarmMseType(const std::string &alarmMseType) { + alarmMseType_ = alarmMseType; + setParameter(std::string("AlarmMseType"), alarmMseType); +} + +int ListAlarmRulesRequest::getPageNum() const { + return pageNum_; +} + +void ListAlarmRulesRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +std::string ListAlarmRulesRequest::getRequestPars() const { + return requestPars_; +} + +void ListAlarmRulesRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +int ListAlarmRulesRequest::getPageSize() const { + return pageSize_; +} + +void ListAlarmRulesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAlarmRulesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListAlarmRulesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListAlarmRulesResult.cc b/mse/src/model/ListAlarmRulesResult.cc new file mode 100644 index 000000000..a712c30aa --- /dev/null +++ b/mse/src/model/ListAlarmRulesResult.cc @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +ListAlarmRulesResult::ListAlarmRulesResult() : + ServiceResult() +{} + +ListAlarmRulesResult::ListAlarmRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAlarmRulesResult::~ListAlarmRulesResult() +{} + +void ListAlarmRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["AlarmRuleModel"]; + for (auto valueDataAlarmRuleModel : allDataNode) + { + AlarmRuleModel dataObject; + if(!valueDataAlarmRuleModel["AlarmStatus"].isNull()) + dataObject.alarmStatus = valueDataAlarmRuleModel["AlarmStatus"].asString(); + if(!valueDataAlarmRuleModel["AlarmRuleId"].isNull()) + dataObject.alarmRuleId = valueDataAlarmRuleModel["AlarmRuleId"].asString(); + if(!valueDataAlarmRuleModel["CreateTime"].isNull()) + dataObject.createTime = valueDataAlarmRuleModel["CreateTime"].asString(); + if(!valueDataAlarmRuleModel["AlarmRuleDetail"].isNull()) + dataObject.alarmRuleDetail = valueDataAlarmRuleModel["AlarmRuleDetail"].asString(); + if(!valueDataAlarmRuleModel["AlarmName"].isNull()) + dataObject.alarmName = valueDataAlarmRuleModel["AlarmName"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListAlarmRulesResult::getHttpCode()const +{ + return httpCode_; +} + +int ListAlarmRulesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAlarmRulesResult::getMessage()const +{ + return message_; +} + +int ListAlarmRulesResult::getPageSize()const +{ + return pageSize_; +} + +int ListAlarmRulesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListAlarmRulesResult::getData()const +{ + return data_; +} + +std::string ListAlarmRulesResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListAlarmRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListAnsInstancesRequest.cc b/mse/src/model/ListAnsInstancesRequest.cc new file mode 100644 index 000000000..28de62a91 --- /dev/null +++ b/mse/src/model/ListAnsInstancesRequest.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::ListAnsInstancesRequest; + +ListAnsInstancesRequest::ListAnsInstancesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListAnsInstances") { + setMethod(HttpRequest::Method::Get); +} + +ListAnsInstancesRequest::~ListAnsInstancesRequest() {} + +std::string ListAnsInstancesRequest::getClusterName() const { + return clusterName_; +} + +void ListAnsInstancesRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + setParameter(std::string("ClusterName"), clusterName); +} + +std::string ListAnsInstancesRequest::getClusterId() const { + return clusterId_; +} + +void ListAnsInstancesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int ListAnsInstancesRequest::getPageNum() const { + return pageNum_; +} + +void ListAnsInstancesRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +std::string ListAnsInstancesRequest::getGroupName() const { + return groupName_; +} + +void ListAnsInstancesRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string ListAnsInstancesRequest::getInstanceId() const { + return instanceId_; +} + +void ListAnsInstancesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListAnsInstancesRequest::getNamespaceId() const { + return namespaceId_; +} + +void ListAnsInstancesRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string ListAnsInstancesRequest::getRequestPars() const { + return requestPars_; +} + +void ListAnsInstancesRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +int ListAnsInstancesRequest::getPageSize() const { + return pageSize_; +} + +void ListAnsInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAnsInstancesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListAnsInstancesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string ListAnsInstancesRequest::getServiceName() const { + return serviceName_; +} + +void ListAnsInstancesRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + diff --git a/mse/src/model/ListAnsInstancesResult.cc b/mse/src/model/ListAnsInstancesResult.cc new file mode 100644 index 000000000..0d0e858c6 --- /dev/null +++ b/mse/src/model/ListAnsInstancesResult.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 +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +ListAnsInstancesResult::ListAnsInstancesResult() : + ServiceResult() +{} + +ListAnsInstancesResult::ListAnsInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAnsInstancesResult::~ListAnsInstancesResult() +{} + +void ListAnsInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["NacosAnsInstance"]; + for (auto valueDataNacosAnsInstance : allDataNode) + { + NacosAnsInstance dataObject; + if(!valueDataNacosAnsInstance["DefaultKey"].isNull()) + dataObject.defaultKey = valueDataNacosAnsInstance["DefaultKey"].asString(); + if(!valueDataNacosAnsInstance["Ephemeral"].isNull()) + dataObject.ephemeral = valueDataNacosAnsInstance["Ephemeral"].asString() == "true"; + if(!valueDataNacosAnsInstance["Marked"].isNull()) + dataObject.marked = valueDataNacosAnsInstance["Marked"].asString() == "true"; + if(!valueDataNacosAnsInstance["Ip"].isNull()) + dataObject.ip = valueDataNacosAnsInstance["Ip"].asString(); + if(!valueDataNacosAnsInstance["InstanceId"].isNull()) + dataObject.instanceId = valueDataNacosAnsInstance["InstanceId"].asString(); + if(!valueDataNacosAnsInstance["Port"].isNull()) + dataObject.port = std::stoi(valueDataNacosAnsInstance["Port"].asString()); + if(!valueDataNacosAnsInstance["LastBeat"].isNull()) + dataObject.lastBeat = std::stol(valueDataNacosAnsInstance["LastBeat"].asString()); + if(!valueDataNacosAnsInstance["OkCount"].isNull()) + dataObject.okCount = std::stoi(valueDataNacosAnsInstance["OkCount"].asString()); + if(!valueDataNacosAnsInstance["Weight"].isNull()) + dataObject.weight = std::stoi(valueDataNacosAnsInstance["Weight"].asString()); + if(!valueDataNacosAnsInstance["InstanceHeartBeatInterval"].isNull()) + dataObject.instanceHeartBeatInterval = std::stoi(valueDataNacosAnsInstance["InstanceHeartBeatInterval"].asString()); + if(!valueDataNacosAnsInstance["IpDeleteTimeout"].isNull()) + dataObject.ipDeleteTimeout = std::stoi(valueDataNacosAnsInstance["IpDeleteTimeout"].asString()); + if(!valueDataNacosAnsInstance["App"].isNull()) + dataObject.app = valueDataNacosAnsInstance["App"].asString(); + if(!valueDataNacosAnsInstance["FailCount"].isNull()) + dataObject.failCount = std::stoi(valueDataNacosAnsInstance["FailCount"].asString()); + if(!valueDataNacosAnsInstance["Healthy"].isNull()) + dataObject.healthy = valueDataNacosAnsInstance["Healthy"].asString() == "true"; + if(!valueDataNacosAnsInstance["Enabled"].isNull()) + dataObject.enabled = valueDataNacosAnsInstance["Enabled"].asString() == "true"; + if(!valueDataNacosAnsInstance["DatumKey"].isNull()) + dataObject.datumKey = valueDataNacosAnsInstance["DatumKey"].asString(); + if(!valueDataNacosAnsInstance["ClusterName"].isNull()) + dataObject.clusterName = valueDataNacosAnsInstance["ClusterName"].asString(); + if(!valueDataNacosAnsInstance["InstanceHeartBeatTimeOut"].isNull()) + dataObject.instanceHeartBeatTimeOut = std::stoi(valueDataNacosAnsInstance["InstanceHeartBeatTimeOut"].asString()); + if(!valueDataNacosAnsInstance["ServiceName"].isNull()) + dataObject.serviceName = valueDataNacosAnsInstance["ServiceName"].asString(); + if(!valueDataNacosAnsInstance["Metadata"].isNull()) + dataObject.metadata = valueDataNacosAnsInstance["Metadata"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListAnsInstancesResult::getHttpCode()const +{ + return httpCode_; +} + +int ListAnsInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAnsInstancesResult::getMessage()const +{ + return message_; +} + +int ListAnsInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int ListAnsInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListAnsInstancesResult::getData()const +{ + return data_; +} + +std::string ListAnsInstancesResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListAnsInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListAnsServiceClustersRequest.cc b/mse/src/model/ListAnsServiceClustersRequest.cc new file mode 100644 index 000000000..6aeb48321 --- /dev/null +++ b/mse/src/model/ListAnsServiceClustersRequest.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::ListAnsServiceClustersRequest; + +ListAnsServiceClustersRequest::ListAnsServiceClustersRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListAnsServiceClusters") { + setMethod(HttpRequest::Method::Get); +} + +ListAnsServiceClustersRequest::~ListAnsServiceClustersRequest() {} + +std::string ListAnsServiceClustersRequest::getClusterName() const { + return clusterName_; +} + +void ListAnsServiceClustersRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + setParameter(std::string("ClusterName"), clusterName); +} + +std::string ListAnsServiceClustersRequest::getClusterId() const { + return clusterId_; +} + +void ListAnsServiceClustersRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int ListAnsServiceClustersRequest::getPageNum() const { + return pageNum_; +} + +void ListAnsServiceClustersRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +std::string ListAnsServiceClustersRequest::getGroupName() const { + return groupName_; +} + +void ListAnsServiceClustersRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string ListAnsServiceClustersRequest::getInstanceId() const { + return instanceId_; +} + +void ListAnsServiceClustersRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListAnsServiceClustersRequest::getNamespaceId() const { + return namespaceId_; +} + +void ListAnsServiceClustersRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + 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_; +} + +void ListAnsServiceClustersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAnsServiceClustersRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListAnsServiceClustersRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string ListAnsServiceClustersRequest::getServiceName() const { + return serviceName_; +} + +void ListAnsServiceClustersRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + diff --git a/mse/src/model/ListAnsServiceClustersResult.cc b/mse/src/model/ListAnsServiceClustersResult.cc new file mode 100644 index 000000000..30e6ae1de --- /dev/null +++ b/mse/src/model/ListAnsServiceClustersResult.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; + +ListAnsServiceClustersResult::ListAnsServiceClustersResult() : + ServiceResult() +{} + +ListAnsServiceClustersResult::ListAnsServiceClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAnsServiceClustersResult::~ListAnsServiceClustersResult() +{} + +void ListAnsServiceClustersResult::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["ProtectThreshold"].isNull()) + data_.protectThreshold = std::stof(dataNode["ProtectThreshold"].asString()); + if(!dataNode["GroupName"].isNull()) + data_.groupName = dataNode["GroupName"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["SelectorType"].isNull()) + data_.selectorType = dataNode["SelectorType"].asString(); + if(!dataNode["Metadata"].isNull()) + data_.metadata = dataNode["Metadata"].asString(); + if(!dataNode["Ephemeral"].isNull()) + data_.ephemeral = dataNode["Ephemeral"].asString() == "true"; + auto allClustersNode = dataNode["Clusters"]["NacosAnsCluster"]; + for (auto dataNodeClustersNacosAnsCluster : allClustersNode) + { + Data::NacosAnsCluster nacosAnsClusterObject; + if(!dataNodeClustersNacosAnsCluster["DefaultCheckPort"].isNull()) + nacosAnsClusterObject.defaultCheckPort = std::stoi(dataNodeClustersNacosAnsCluster["DefaultCheckPort"].asString()); + if(!dataNodeClustersNacosAnsCluster["HealthCheckerType"].isNull()) + nacosAnsClusterObject.healthCheckerType = dataNodeClustersNacosAnsCluster["HealthCheckerType"].asString(); + if(!dataNodeClustersNacosAnsCluster["UseIPPort4Check"].isNull()) + nacosAnsClusterObject.useIPPort4Check = dataNodeClustersNacosAnsCluster["UseIPPort4Check"].asString() == "true"; + if(!dataNodeClustersNacosAnsCluster["ServiceName"].isNull()) + nacosAnsClusterObject.serviceName = dataNodeClustersNacosAnsCluster["ServiceName"].asString(); + if(!dataNodeClustersNacosAnsCluster["Name"].isNull()) + nacosAnsClusterObject.name = dataNodeClustersNacosAnsCluster["Name"].asString(); + if(!dataNodeClustersNacosAnsCluster["DefaultPort"].isNull()) + nacosAnsClusterObject.defaultPort = std::stoi(dataNodeClustersNacosAnsCluster["DefaultPort"].asString()); + if(!dataNodeClustersNacosAnsCluster["Metadata"].isNull()) + nacosAnsClusterObject.metadata = dataNodeClustersNacosAnsCluster["Metadata"].asString(); + data_.clusters.push_back(nacosAnsClusterObject); + } + 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 ListAnsServiceClustersResult::getMessage()const +{ + return message_; +} + +ListAnsServiceClustersResult::Data ListAnsServiceClustersResult::getData()const +{ + return data_; +} + +std::string ListAnsServiceClustersResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListAnsServiceClustersResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListAnsServicesRequest.cc b/mse/src/model/ListAnsServicesRequest.cc new file mode 100644 index 000000000..6bf3e51bb --- /dev/null +++ b/mse/src/model/ListAnsServicesRequest.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::ListAnsServicesRequest; + +ListAnsServicesRequest::ListAnsServicesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListAnsServices") { + setMethod(HttpRequest::Method::Get); +} + +ListAnsServicesRequest::~ListAnsServicesRequest() {} + +std::string ListAnsServicesRequest::getClusterId() const { + return clusterId_; +} + +void ListAnsServicesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int ListAnsServicesRequest::getPageNum() const { + return pageNum_; +} + +void ListAnsServicesRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +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_; +} + +void ListAnsServicesRequest::setHasIpCount(const std::string &hasIpCount) { + hasIpCount_ = 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::getNamespaceId() const { + return namespaceId_; +} + +void ListAnsServicesRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string ListAnsServicesRequest::getRequestPars() const { + return requestPars_; +} + +void ListAnsServicesRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +int ListAnsServicesRequest::getPageSize() const { + return pageSize_; +} + +void ListAnsServicesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAnsServicesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListAnsServicesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string ListAnsServicesRequest::getServiceName() const { + return serviceName_; +} + +void ListAnsServicesRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + diff --git a/mse/src/model/ListAnsServicesResult.cc b/mse/src/model/ListAnsServicesResult.cc new file mode 100644 index 000000000..e5a4ff5c4 --- /dev/null +++ b/mse/src/model/ListAnsServicesResult.cc @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +ListAnsServicesResult::ListAnsServicesResult() : + ServiceResult() +{} + +ListAnsServicesResult::ListAnsServicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAnsServicesResult::~ListAnsServicesResult() +{} + +void ListAnsServicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["SimpleNacosAnsService"]; + for (auto valueDataSimpleNacosAnsService : allDataNode) + { + SimpleNacosAnsService dataObject; + if(!valueDataSimpleNacosAnsService["HealthyInstanceCount"].isNull()) + dataObject.healthyInstanceCount = std::stoi(valueDataSimpleNacosAnsService["HealthyInstanceCount"].asString()); + if(!valueDataSimpleNacosAnsService["GroupName"].isNull()) + dataObject.groupName = valueDataSimpleNacosAnsService["GroupName"].asString(); + if(!valueDataSimpleNacosAnsService["IpCount"].isNull()) + dataObject.ipCount = std::stoi(valueDataSimpleNacosAnsService["IpCount"].asString()); + if(!valueDataSimpleNacosAnsService["Name"].isNull()) + dataObject.name = valueDataSimpleNacosAnsService["Name"].asString(); + if(!valueDataSimpleNacosAnsService["ClusterCount"].isNull()) + dataObject.clusterCount = std::stoi(valueDataSimpleNacosAnsService["ClusterCount"].asString()); + data_.push_back(dataObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListAnsServicesResult::getHttpCode()const +{ + return httpCode_; +} + +int ListAnsServicesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAnsServicesResult::getMessage()const +{ + return message_; +} + +int ListAnsServicesResult::getPageSize()const +{ + return pageSize_; +} + +int ListAnsServicesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListAnsServicesResult::getData()const +{ + return data_; +} + +std::string ListAnsServicesResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListAnsServicesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListClusterConnectionTypesRequest.cc b/mse/src/model/ListClusterConnectionTypesRequest.cc new file mode 100644 index 000000000..25b1b9039 --- /dev/null +++ b/mse/src/model/ListClusterConnectionTypesRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::ListClusterConnectionTypesRequest; + +ListClusterConnectionTypesRequest::ListClusterConnectionTypesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListClusterConnectionTypes") { + setMethod(HttpRequest::Method::Post); +} + +ListClusterConnectionTypesRequest::~ListClusterConnectionTypesRequest() {} + +std::string ListClusterConnectionTypesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListClusterConnectionTypesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListClusterConnectionTypesResult.cc b/mse/src/model/ListClusterConnectionTypesResult.cc new file mode 100644 index 000000000..c3fa5b0bc --- /dev/null +++ b/mse/src/model/ListClusterConnectionTypesResult.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; + +ListClusterConnectionTypesResult::ListClusterConnectionTypesResult() : + ServiceResult() +{} + +ListClusterConnectionTypesResult::ListClusterConnectionTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterConnectionTypesResult::~ListClusterConnectionTypesResult() +{} + +void ListClusterConnectionTypesResult::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["Code"].isNull()) + dataObject.code = valueDataDataItem["Code"].asString(); + if(!valueDataDataItem["ShowName"].isNull()) + dataObject.showName = valueDataDataItem["ShowName"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string ListClusterConnectionTypesResult::getMessage()const +{ + return message_; +} + +int ListClusterConnectionTypesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListClusterConnectionTypesResult::getData()const +{ + return data_; +} + +std::string ListClusterConnectionTypesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListClusterConnectionTypesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int ListClusterConnectionTypesResult::getCode()const +{ + return code_; +} + +bool ListClusterConnectionTypesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListClusterTypesRequest.cc b/mse/src/model/ListClusterTypesRequest.cc new file mode 100644 index 000000000..35ef01e4c --- /dev/null +++ b/mse/src/model/ListClusterTypesRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::ListClusterTypesRequest; + +ListClusterTypesRequest::ListClusterTypesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListClusterTypes") { + setMethod(HttpRequest::Method::Post); +} + +ListClusterTypesRequest::~ListClusterTypesRequest() {} + +std::string ListClusterTypesRequest::getRegionId() const { + return regionId_; +} + +void ListClusterTypesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListClusterTypesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListClusterTypesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListClusterTypesResult.cc b/mse/src/model/ListClusterTypesResult.cc new file mode 100644 index 000000000..9d26889f3 --- /dev/null +++ b/mse/src/model/ListClusterTypesResult.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; + +ListClusterTypesResult::ListClusterTypesResult() : + ServiceResult() +{} + +ListClusterTypesResult::ListClusterTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterTypesResult::~ListClusterTypesResult() +{} + +void ListClusterTypesResult::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["Code"].isNull()) + dataObject.code = valueDataDataItem["Code"].asString(); + if(!valueDataDataItem["ShowName"].isNull()) + dataObject.showName = valueDataDataItem["ShowName"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string ListClusterTypesResult::getMessage()const +{ + return message_; +} + +int ListClusterTypesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListClusterTypesResult::getData()const +{ + return data_; +} + +std::string ListClusterTypesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListClusterTypesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int ListClusterTypesResult::getCode()const +{ + return code_; +} + +bool ListClusterTypesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListClusterVersionsRequest.cc b/mse/src/model/ListClusterVersionsRequest.cc new file mode 100644 index 000000000..33dd11a7d --- /dev/null +++ b/mse/src/model/ListClusterVersionsRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::ListClusterVersionsRequest; + +ListClusterVersionsRequest::ListClusterVersionsRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListClusterVersions") { + setMethod(HttpRequest::Method::Post); +} + +ListClusterVersionsRequest::~ListClusterVersionsRequest() {} + +std::string ListClusterVersionsRequest::getClusterType() const { + return clusterType_; +} + +void ListClusterVersionsRequest::setClusterType(const std::string &clusterType) { + clusterType_ = clusterType; + setParameter(std::string("ClusterType"), clusterType); +} + +std::string ListClusterVersionsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListClusterVersionsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListClusterVersionsResult.cc b/mse/src/model/ListClusterVersionsResult.cc new file mode 100644 index 000000000..410b0c7b0 --- /dev/null +++ b/mse/src/model/ListClusterVersionsResult.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; + +ListClusterVersionsResult::ListClusterVersionsResult() : + ServiceResult() +{} + +ListClusterVersionsResult::ListClusterVersionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterVersionsResult::~ListClusterVersionsResult() +{} + +void ListClusterVersionsResult::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["Code"].isNull()) + dataObject.code = valueDataDataItem["Code"].asString(); + if(!valueDataDataItem["ShowName"].isNull()) + dataObject.showName = valueDataDataItem["ShowName"].asString(); + if(!valueDataDataItem["ClusterType"].isNull()) + dataObject.clusterType = valueDataDataItem["ClusterType"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string ListClusterVersionsResult::getMessage()const +{ + return message_; +} + +int ListClusterVersionsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListClusterVersionsResult::getData()const +{ + return data_; +} + +std::string ListClusterVersionsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListClusterVersionsResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int ListClusterVersionsResult::getCode()const +{ + return code_; +} + +bool ListClusterVersionsResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListClustersRequest.cc b/mse/src/model/ListClustersRequest.cc new file mode 100644 index 000000000..b1f0cb5e4 --- /dev/null +++ b/mse/src/model/ListClustersRequest.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::ListClustersRequest; + +ListClustersRequest::ListClustersRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListClusters") { + setMethod(HttpRequest::Method::Get); +} + +ListClustersRequest::~ListClustersRequest() {} + +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_; +} + +void ListClustersRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +std::string ListClustersRequest::getRegionId() const { + return regionId_; +} + +void ListClustersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListClustersRequest::getRequestPars() const { + return requestPars_; +} + +void ListClustersRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +int ListClustersRequest::getPageSize() const { + return pageSize_; +} + +void ListClustersRequest::setPageSize(int pageSize) { + pageSize_ = 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); +} + diff --git a/mse/src/model/ListClustersResult.cc b/mse/src/model/ListClustersResult.cc new file mode 100644 index 000000000..5e6ef8b54 --- /dev/null +++ b/mse/src/model/ListClustersResult.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +ListClustersResult::ListClustersResult() : + ServiceResult() +{} + +ListClustersResult::ListClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClustersResult::~ListClustersResult() +{} + +void ListClustersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ClusterForListModel"]; + for (auto valueDataClusterForListModel : allDataNode) + { + ClusterForListModel dataObject; + if(!valueDataClusterForListModel["EndDate"].isNull()) + dataObject.endDate = valueDataClusterForListModel["EndDate"].asString(); + if(!valueDataClusterForListModel["IntranetDomain"].isNull()) + dataObject.intranetDomain = valueDataClusterForListModel["IntranetDomain"].asString(); + if(!valueDataClusterForListModel["InternetDomain"].isNull()) + dataObject.internetDomain = valueDataClusterForListModel["InternetDomain"].asString(); + if(!valueDataClusterForListModel["CreateTime"].isNull()) + dataObject.createTime = valueDataClusterForListModel["CreateTime"].asString(); + if(!valueDataClusterForListModel["ChargeType"].isNull()) + dataObject.chargeType = valueDataClusterForListModel["ChargeType"].asString(); + if(!valueDataClusterForListModel["IntranetAddress"].isNull()) + dataObject.intranetAddress = valueDataClusterForListModel["IntranetAddress"].asString(); + if(!valueDataClusterForListModel["InstanceId"].isNull()) + dataObject.instanceId = valueDataClusterForListModel["InstanceId"].asString(); + if(!valueDataClusterForListModel["InternetAddress"].isNull()) + dataObject.internetAddress = valueDataClusterForListModel["InternetAddress"].asString(); + if(!valueDataClusterForListModel["ClusterAliasName"].isNull()) + dataObject.clusterAliasName = valueDataClusterForListModel["ClusterAliasName"].asString(); + if(!valueDataClusterForListModel["ClusterType"].isNull()) + dataObject.clusterType = valueDataClusterForListModel["ClusterType"].asString(); + if(!valueDataClusterForListModel["InitStatus"].isNull()) + dataObject.initStatus = valueDataClusterForListModel["InitStatus"].asString(); + if(!valueDataClusterForListModel["AppVersion"].isNull()) + dataObject.appVersion = valueDataClusterForListModel["AppVersion"].asString(); + if(!valueDataClusterForListModel["ClusterId"].isNull()) + dataObject.clusterId = valueDataClusterForListModel["ClusterId"].asString(); + if(!valueDataClusterForListModel["CanUpdate"].isNull()) + dataObject.canUpdate = valueDataClusterForListModel["CanUpdate"].asString() == "true"; + if(!valueDataClusterForListModel["VersionCode"].isNull()) + dataObject.versionCode = valueDataClusterForListModel["VersionCode"].asString(); + if(!valueDataClusterForListModel["InstanceCount"].isNull()) + dataObject.instanceCount = std::stol(valueDataClusterForListModel["InstanceCount"].asString()); + if(!valueDataClusterForListModel["ClusterName"].isNull()) + dataObject.clusterName = valueDataClusterForListModel["ClusterName"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListClustersResult::getHttpCode()const +{ + return httpCode_; +} + +int ListClustersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListClustersResult::getMessage()const +{ + return message_; +} + +int ListClustersResult::getPageSize()const +{ + return pageSize_; +} + +int ListClustersResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListClustersResult::getData()const +{ + return data_; +} + +std::string ListClustersResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListClustersResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListEngineNamespacesRequest.cc b/mse/src/model/ListEngineNamespacesRequest.cc new file mode 100644 index 000000000..a9ed572f7 --- /dev/null +++ b/mse/src/model/ListEngineNamespacesRequest.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::ListEngineNamespacesRequest; + +ListEngineNamespacesRequest::ListEngineNamespacesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListEngineNamespaces") { + setMethod(HttpRequest::Method::Get); +} + +ListEngineNamespacesRequest::~ListEngineNamespacesRequest() {} + +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_; +} + +void ListEngineNamespacesRequest::setPageNum(int pageNum) { + pageNum_ = 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_; +} + +void ListEngineNamespacesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListEngineNamespacesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListEngineNamespacesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListEngineNamespacesResult.cc b/mse/src/model/ListEngineNamespacesResult.cc new file mode 100644 index 000000000..551f86b1d --- /dev/null +++ b/mse/src/model/ListEngineNamespacesResult.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +ListEngineNamespacesResult::ListEngineNamespacesResult() : + ServiceResult() +{} + +ListEngineNamespacesResult::ListEngineNamespacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEngineNamespacesResult::~ListEngineNamespacesResult() +{} + +void ListEngineNamespacesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Namespace"]; + for (auto valueDataNamespace : allDataNode) + { + _Namespace dataObject; + if(!valueDataNamespace["Type"].isNull()) + dataObject.type = std::stoi(valueDataNamespace["Type"].asString()); + if(!valueDataNamespace["NamespaceShowName"].isNull()) + dataObject.namespaceShowName = valueDataNamespace["NamespaceShowName"].asString(); + if(!valueDataNamespace["Quota"].isNull()) + dataObject.quota = std::stoi(valueDataNamespace["Quota"].asString()); + if(!valueDataNamespace["Namespace"].isNull()) + dataObject._namespace = valueDataNamespace["Namespace"].asString(); + if(!valueDataNamespace["NamespaceDesc"].isNull()) + dataObject.namespaceDesc = valueDataNamespace["NamespaceDesc"].asString(); + if(!valueDataNamespace["ConfigCount"].isNull()) + dataObject.configCount = std::stoi(valueDataNamespace["ConfigCount"].asString()); + if(!valueDataNamespace["ServiceCount"].isNull()) + dataObject.serviceCount = valueDataNamespace["ServiceCount"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListEngineNamespacesResult::getHttpCode()const +{ + return httpCode_; +} + +int ListEngineNamespacesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListEngineNamespacesResult::getMessage()const +{ + return message_; +} + +int ListEngineNamespacesResult::getPageSize()const +{ + return pageSize_; +} + +int ListEngineNamespacesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListEngineNamespacesResult::getData()const +{ + return data_; +} + +std::string ListEngineNamespacesResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListEngineNamespacesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListEurekaInstancesRequest.cc b/mse/src/model/ListEurekaInstancesRequest.cc new file mode 100644 index 000000000..6c65d535e --- /dev/null +++ b/mse/src/model/ListEurekaInstancesRequest.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::ListEurekaInstancesRequest; + +ListEurekaInstancesRequest::ListEurekaInstancesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListEurekaInstances") { + setMethod(HttpRequest::Method::Get); +} + +ListEurekaInstancesRequest::~ListEurekaInstancesRequest() {} + +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_; +} + +void ListEurekaInstancesRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +std::string ListEurekaInstancesRequest::getRequestPars() const { + return requestPars_; +} + +void ListEurekaInstancesRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +int ListEurekaInstancesRequest::getPageSize() const { + return pageSize_; +} + +void ListEurekaInstancesRequest::setPageSize(int pageSize) { + pageSize_ = 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_; +} + +void ListEurekaInstancesRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + diff --git a/mse/src/model/ListEurekaInstancesResult.cc b/mse/src/model/ListEurekaInstancesResult.cc new file mode 100644 index 000000000..af395b466 --- /dev/null +++ b/mse/src/model/ListEurekaInstancesResult.cc @@ -0,0 +1,132 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +ListEurekaInstancesResult::ListEurekaInstancesResult() : + ServiceResult() +{} + +ListEurekaInstancesResult::ListEurekaInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEurekaInstancesResult::~ListEurekaInstancesResult() +{} + +void ListEurekaInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["EurekaInstance"]; + for (auto valueDataEurekaInstance : allDataNode) + { + EurekaInstance dataObject; + if(!valueDataEurekaInstance["Status"].isNull()) + dataObject.status = valueDataEurekaInstance["Status"].asString(); + if(!valueDataEurekaInstance["LastDirtyTimestamp"].isNull()) + dataObject.lastDirtyTimestamp = std::stol(valueDataEurekaInstance["LastDirtyTimestamp"].asString()); + if(!valueDataEurekaInstance["IpAddr"].isNull()) + dataObject.ipAddr = valueDataEurekaInstance["IpAddr"].asString(); + if(!valueDataEurekaInstance["HomePageUrl"].isNull()) + dataObject.homePageUrl = valueDataEurekaInstance["HomePageUrl"].asString(); + if(!valueDataEurekaInstance["HostName"].isNull()) + dataObject.hostName = valueDataEurekaInstance["HostName"].asString(); + if(!valueDataEurekaInstance["InstanceId"].isNull()) + dataObject.instanceId = valueDataEurekaInstance["InstanceId"].asString(); + if(!valueDataEurekaInstance["Port"].isNull()) + dataObject.port = std::stoi(valueDataEurekaInstance["Port"].asString()); + if(!valueDataEurekaInstance["SecurePort"].isNull()) + dataObject.securePort = std::stoi(valueDataEurekaInstance["SecurePort"].asString()); + if(!valueDataEurekaInstance["App"].isNull()) + dataObject.app = valueDataEurekaInstance["App"].asString(); + if(!valueDataEurekaInstance["DurationInSecs"].isNull()) + dataObject.durationInSecs = std::stoi(valueDataEurekaInstance["DurationInSecs"].asString()); + if(!valueDataEurekaInstance["LastUpdatedTimestamp"].isNull()) + dataObject.lastUpdatedTimestamp = std::stol(valueDataEurekaInstance["LastUpdatedTimestamp"].asString()); + if(!valueDataEurekaInstance["RenewalIntervalInSecs"].isNull()) + dataObject.renewalIntervalInSecs = std::stoi(valueDataEurekaInstance["RenewalIntervalInSecs"].asString()); + if(!valueDataEurekaInstance["VipAddress"].isNull()) + dataObject.vipAddress = valueDataEurekaInstance["VipAddress"].asString(); + if(!valueDataEurekaInstance["Metadata"].isNull()) + dataObject.metadata = valueDataEurekaInstance["Metadata"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListEurekaInstancesResult::getHttpCode()const +{ + return httpCode_; +} + +int ListEurekaInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListEurekaInstancesResult::getMessage()const +{ + return message_; +} + +int ListEurekaInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int ListEurekaInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListEurekaInstancesResult::getData()const +{ + return data_; +} + +std::string ListEurekaInstancesResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListEurekaInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListEurekaServicesRequest.cc b/mse/src/model/ListEurekaServicesRequest.cc new file mode 100644 index 000000000..d2f66eada --- /dev/null +++ b/mse/src/model/ListEurekaServicesRequest.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::ListEurekaServicesRequest; + +ListEurekaServicesRequest::ListEurekaServicesRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListEurekaServices") { + setMethod(HttpRequest::Method::Get); +} + +ListEurekaServicesRequest::~ListEurekaServicesRequest() {} + +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_; +} + +void ListEurekaServicesRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +std::string ListEurekaServicesRequest::getRegionId() const { + return regionId_; +} + +void ListEurekaServicesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListEurekaServicesRequest::getRequestPars() const { + return requestPars_; +} + +void ListEurekaServicesRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +int ListEurekaServicesRequest::getPageSize() const { + return pageSize_; +} + +void ListEurekaServicesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListEurekaServicesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListEurekaServicesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListEurekaServicesResult.cc b/mse/src/model/ListEurekaServicesResult.cc new file mode 100644 index 000000000..d23ce3463 --- /dev/null +++ b/mse/src/model/ListEurekaServicesResult.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +ListEurekaServicesResult::ListEurekaServicesResult() : + ServiceResult() +{} + +ListEurekaServicesResult::ListEurekaServicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEurekaServicesResult::~ListEurekaServicesResult() +{} + +void ListEurekaServicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["SimpleService"]; + for (auto valueDataSimpleService : allDataNode) + { + SimpleService dataObject; + if(!valueDataSimpleService["Name"].isNull()) + dataObject.name = valueDataSimpleService["Name"].asString(); + if(!valueDataSimpleService["UpStatus"].isNull()) + dataObject.upStatus = valueDataSimpleService["UpStatus"].asString(); + auto allInstancesId = value["InstancesId"]["String"]; + for (auto value : allInstancesId) + dataObject.instancesId.push_back(value.asString()); + data_.push_back(dataObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListEurekaServicesResult::getHttpCode()const +{ + return httpCode_; +} + +int ListEurekaServicesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListEurekaServicesResult::getMessage()const +{ + return message_; +} + +int ListEurekaServicesResult::getPageSize()const +{ + return pageSize_; +} + +int ListEurekaServicesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListEurekaServicesResult::getData()const +{ + return data_; +} + +std::string ListEurekaServicesResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListEurekaServicesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListGatewayDomainRequest.cc b/mse/src/model/ListGatewayDomainRequest.cc new file mode 100644 index 000000000..3a4513a75 --- /dev/null +++ b/mse/src/model/ListGatewayDomainRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::ListGatewayDomainRequest; + +ListGatewayDomainRequest::ListGatewayDomainRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListGatewayDomain") { + setMethod(HttpRequest::Method::Get); +} + +ListGatewayDomainRequest::~ListGatewayDomainRequest() {} + +std::string ListGatewayDomainRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void ListGatewayDomainRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string ListGatewayDomainRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListGatewayDomainRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListGatewayDomainResult.cc b/mse/src/model/ListGatewayDomainResult.cc new file mode 100644 index 000000000..590c374ae --- /dev/null +++ b/mse/src/model/ListGatewayDomainResult.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; + +ListGatewayDomainResult::ListGatewayDomainResult() : + ServiceResult() +{} + +ListGatewayDomainResult::ListGatewayDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGatewayDomainResult::~ListGatewayDomainResult() +{} + +void ListGatewayDomainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Domains"]; + for (auto valueDataDomains : allDataNode) + { + Domains dataObject; + if(!valueDataDomains["Id"].isNull()) + dataObject.id = std::stol(valueDataDomains["Id"].asString()); + if(!valueDataDomains["Name"].isNull()) + dataObject.name = valueDataDomains["Name"].asString(); + if(!valueDataDomains["Protocol"].isNull()) + dataObject.protocol = valueDataDomains["Protocol"].asString(); + if(!valueDataDomains["MustHttps"].isNull()) + dataObject.mustHttps = valueDataDomains["MustHttps"].asString() == "true"; + if(!valueDataDomains["CertIdentifier"].isNull()) + dataObject.certIdentifier = valueDataDomains["CertIdentifier"].asString(); + if(!valueDataDomains["CertBeforeDate"].isNull()) + dataObject.certBeforeDate = valueDataDomains["CertBeforeDate"].asString(); + if(!valueDataDomains["GatewayId"].isNull()) + dataObject.gatewayId = std::stol(valueDataDomains["GatewayId"].asString()); + if(!valueDataDomains["GmtCreate"].isNull()) + dataObject.gmtCreate = valueDataDomains["GmtCreate"].asString(); + if(!valueDataDomains["GmtModified"].isNull()) + dataObject.gmtModified = valueDataDomains["GmtModified"].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 ListGatewayDomainResult::getMessage()const +{ + return message_; +} + +int ListGatewayDomainResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListGatewayDomainResult::getData()const +{ + return data_; +} + +int ListGatewayDomainResult::getCode()const +{ + return code_; +} + +bool ListGatewayDomainResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListGatewayRequest.cc b/mse/src/model/ListGatewayRequest.cc new file mode 100644 index 000000000..5bb28ff35 --- /dev/null +++ b/mse/src/model/ListGatewayRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Mse::Model::ListGatewayRequest; + +ListGatewayRequest::ListGatewayRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListGateway") { + setMethod(HttpRequest::Method::Post); +} + +ListGatewayRequest::~ListGatewayRequest() {} + +int ListGatewayRequest::getPageNumber() const { + return pageNumber_; +} + +void ListGatewayRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListGatewayRequest::getOrderItem() const { + return orderItem_; +} + +void ListGatewayRequest::setOrderItem(const std::string &orderItem) { + orderItem_ = orderItem; + setParameter(std::string("OrderItem"), orderItem); +} + +int ListGatewayRequest::getPageSize() const { + return pageSize_; +} + +void ListGatewayRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +bool ListGatewayRequest::getDescSort() const { + return descSort_; +} + +void ListGatewayRequest::setDescSort(bool descSort) { + descSort_ = descSort; + setParameter(std::string("DescSort"), descSort ? "true" : "false"); +} + +ListGatewayRequest::FilterParams ListGatewayRequest::getFilterParams() const { + return filterParams_; +} + +void ListGatewayRequest::setFilterParams(const ListGatewayRequest::FilterParams &filterParams) { + filterParams_ = filterParams; + setParameter(std::string("FilterParams") + ".GatewayType", filterParams.gatewayType); + setParameter(std::string("FilterParams") + ".InstanceId", filterParams.instanceId); + setParameter(std::string("FilterParams") + ".GatewayUniqueId", filterParams.gatewayUniqueId); + setParameter(std::string("FilterParams") + ".Name", filterParams.name); + setParameter(std::string("FilterParams") + ".Vpc", filterParams.vpc); +} + +std::string ListGatewayRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListGatewayRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListGatewayResult.cc b/mse/src/model/ListGatewayResult.cc new file mode 100644 index 000000000..d39f7daee --- /dev/null +++ b/mse/src/model/ListGatewayResult.cc @@ -0,0 +1,182 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +ListGatewayResult::ListGatewayResult() : + ServiceResult() +{} + +ListGatewayResult::ListGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGatewayResult::~ListGatewayResult() +{} + +void ListGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stol(dataNode["TotalSize"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allResultNode = dataNode["Result"]["Gateways"]; + for (auto dataNodeResultGateways : allResultNode) + { + Data::Gateways gatewaysObject; + if(!dataNodeResultGateways["Id"].isNull()) + gatewaysObject.id = std::stol(dataNodeResultGateways["Id"].asString()); + if(!dataNodeResultGateways["Name"].isNull()) + gatewaysObject.name = dataNodeResultGateways["Name"].asString(); + if(!dataNodeResultGateways["GatewayUniqueId"].isNull()) + gatewaysObject.gatewayUniqueId = dataNodeResultGateways["GatewayUniqueId"].asString(); + if(!dataNodeResultGateways["GatewayType"].isNull()) + gatewaysObject.gatewayType = dataNodeResultGateways["GatewayType"].asString(); + if(!dataNodeResultGateways["Region"].isNull()) + gatewaysObject.region = dataNodeResultGateways["Region"].asString(); + if(!dataNodeResultGateways["PrimaryUser"].isNull()) + gatewaysObject.primaryUser = dataNodeResultGateways["PrimaryUser"].asString(); + if(!dataNodeResultGateways["Status"].isNull()) + gatewaysObject.status = std::stoi(dataNodeResultGateways["Status"].asString()); + if(!dataNodeResultGateways["AhasOn"].isNull()) + gatewaysObject.ahasOn = dataNodeResultGateways["AhasOn"].asString() == "true"; + if(!dataNodeResultGateways["ArmsOn"].isNull()) + gatewaysObject.armsOn = dataNodeResultGateways["ArmsOn"].asString() == "true"; + if(!dataNodeResultGateways["Spec"].isNull()) + gatewaysObject.spec = dataNodeResultGateways["Spec"].asString(); + if(!dataNodeResultGateways["Replica"].isNull()) + gatewaysObject.replica = std::stoi(dataNodeResultGateways["Replica"].asString()); + if(!dataNodeResultGateways["GmtCreate"].isNull()) + gatewaysObject.gmtCreate = dataNodeResultGateways["GmtCreate"].asString(); + if(!dataNodeResultGateways["GmtModified"].isNull()) + gatewaysObject.gmtModified = dataNodeResultGateways["GmtModified"].asString(); + if(!dataNodeResultGateways["StatusDesc"].isNull()) + gatewaysObject.statusDesc = dataNodeResultGateways["StatusDesc"].asString(); + if(!dataNodeResultGateways["Upgrade"].isNull()) + gatewaysObject.upgrade = dataNodeResultGateways["Upgrade"].asString() == "true"; + if(!dataNodeResultGateways["MustUpgrade"].isNull()) + gatewaysObject.mustUpgrade = dataNodeResultGateways["MustUpgrade"].asString() == "true"; + if(!dataNodeResultGateways["CurrentVersion"].isNull()) + gatewaysObject.currentVersion = dataNodeResultGateways["CurrentVersion"].asString(); + if(!dataNodeResultGateways["LatestVersion"].isNull()) + gatewaysObject.latestVersion = dataNodeResultGateways["LatestVersion"].asString(); + if(!dataNodeResultGateways["Vswitch2"].isNull()) + gatewaysObject.vswitch2 = dataNodeResultGateways["Vswitch2"].asString(); + if(!dataNodeResultGateways["InstanceId"].isNull()) + gatewaysObject.instanceId = dataNodeResultGateways["InstanceId"].asString(); + if(!dataNodeResultGateways["ChargeType"].isNull()) + gatewaysObject.chargeType = dataNodeResultGateways["ChargeType"].asString(); + if(!dataNodeResultGateways["EndDate"].isNull()) + gatewaysObject.endDate = dataNodeResultGateways["EndDate"].asString(); + if(!dataNodeResultGateways["Tag"].isNull()) + gatewaysObject.tag = dataNodeResultGateways["Tag"].asString(); + auto allSlbNode = dataNodeResultGateways["Slb"]["slbItem"]; + for (auto dataNodeResultGatewaysSlbslbItem : allSlbNode) + { + Data::Gateways::SlbItem slbObject; + if(!dataNodeResultGatewaysSlbslbItem["SlbIp"].isNull()) + slbObject.slbIp = dataNodeResultGatewaysSlbslbItem["SlbIp"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["SlbPort"].isNull()) + slbObject.slbPort = dataNodeResultGatewaysSlbslbItem["SlbPort"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["SlbSpec"].isNull()) + slbObject.slbSpec = dataNodeResultGatewaysSlbslbItem["SlbSpec"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["Type"].isNull()) + slbObject.type = dataNodeResultGatewaysSlbslbItem["Type"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["GatewaySlbStatus"].isNull()) + slbObject.gatewaySlbStatus = dataNodeResultGatewaysSlbslbItem["GatewaySlbStatus"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["StatusDesc"].isNull()) + slbObject.statusDesc = dataNodeResultGatewaysSlbslbItem["StatusDesc"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["GatewaySlbMode"].isNull()) + slbObject.gatewaySlbMode = dataNodeResultGatewaysSlbslbItem["GatewaySlbMode"].asString(); + if(!dataNodeResultGatewaysSlbslbItem["SlbId"].isNull()) + slbObject.slbId = dataNodeResultGatewaysSlbslbItem["SlbId"].asString(); + gatewaysObject.slb.push_back(slbObject); + } + auto allInternetSlbNode = dataNodeResultGateways["InternetSlb"]["internetSlbItem"]; + for (auto dataNodeResultGatewaysInternetSlbinternetSlbItem : allInternetSlbNode) + { + Data::Gateways::InternetSlbItem internetSlbObject; + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbIp"].isNull()) + internetSlbObject.slbIp = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbIp"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbPort"].isNull()) + internetSlbObject.slbPort = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbPort"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbSpec"].isNull()) + internetSlbObject.slbSpec = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbSpec"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["Type"].isNull()) + internetSlbObject.type = dataNodeResultGatewaysInternetSlbinternetSlbItem["Type"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["InternetNetworkFlow"].isNull()) + internetSlbObject.internetNetworkFlow = dataNodeResultGatewaysInternetSlbinternetSlbItem["InternetNetworkFlow"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["GatewaySlbStatus"].isNull()) + internetSlbObject.gatewaySlbStatus = dataNodeResultGatewaysInternetSlbinternetSlbItem["GatewaySlbStatus"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["StatusDesc"].isNull()) + internetSlbObject.statusDesc = dataNodeResultGatewaysInternetSlbinternetSlbItem["StatusDesc"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["GatewaySlbMode"].isNull()) + internetSlbObject.gatewaySlbMode = dataNodeResultGatewaysInternetSlbinternetSlbItem["GatewaySlbMode"].asString(); + if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbId"].isNull()) + internetSlbObject.slbId = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbId"].asString(); + gatewaysObject.internetSlb.push_back(internetSlbObject); + } + data_.result.push_back(gatewaysObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListGatewayResult::getMessage()const +{ + return message_; +} + +int ListGatewayResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListGatewayResult::Data ListGatewayResult::getData()const +{ + return data_; +} + +int ListGatewayResult::getCode()const +{ + return code_; +} + +bool ListGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListGatewayServiceRequest.cc b/mse/src/model/ListGatewayServiceRequest.cc new file mode 100644 index 000000000..29420745a --- /dev/null +++ b/mse/src/model/ListGatewayServiceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Mse::Model::ListGatewayServiceRequest; + +ListGatewayServiceRequest::ListGatewayServiceRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListGatewayService") { + setMethod(HttpRequest::Method::Post); +} + +ListGatewayServiceRequest::~ListGatewayServiceRequest() {} + +int ListGatewayServiceRequest::getPageNumber() const { + return pageNumber_; +} + +void ListGatewayServiceRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListGatewayServiceRequest::getOrderItem() const { + return orderItem_; +} + +void ListGatewayServiceRequest::setOrderItem(const std::string &orderItem) { + orderItem_ = orderItem; + setParameter(std::string("OrderItem"), orderItem); +} + +int ListGatewayServiceRequest::getPageSize() const { + return pageSize_; +} + +void ListGatewayServiceRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +bool ListGatewayServiceRequest::getDescSort() const { + return descSort_; +} + +void ListGatewayServiceRequest::setDescSort(bool descSort) { + descSort_ = descSort; + setParameter(std::string("DescSort"), descSort ? "true" : "false"); +} + +ListGatewayServiceRequest::FilterParams ListGatewayServiceRequest::getFilterParams() const { + return filterParams_; +} + +void ListGatewayServiceRequest::setFilterParams(const ListGatewayServiceRequest::FilterParams &filterParams) { + filterParams_ = filterParams; + setParameter(std::string("FilterParams") + ".GatewayUniqueId", filterParams.gatewayUniqueId); + setParameter(std::string("FilterParams") + ".Name", filterParams.name); + setParameter(std::string("FilterParams") + ".Namespace", filterParams._namespace); + setParameter(std::string("FilterParams") + ".SourceType", filterParams.sourceType); + setParameter(std::string("FilterParams") + ".GroupName", filterParams.groupName); +} + +std::string ListGatewayServiceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListGatewayServiceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListGatewayServiceResult.cc b/mse/src/model/ListGatewayServiceResult.cc new file mode 100644 index 000000000..6903c8e73 --- /dev/null +++ b/mse/src/model/ListGatewayServiceResult.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; + +ListGatewayServiceResult::ListGatewayServiceResult() : + ServiceResult() +{} + +ListGatewayServiceResult::ListGatewayServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGatewayServiceResult::~ListGatewayServiceResult() +{} + +void ListGatewayServiceResult::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"]["Services"]; + for (auto dataNodeResultServices : allResultNode) + { + Data::Services servicesObject; + if(!dataNodeResultServices["Id"].isNull()) + servicesObject.id = std::stol(dataNodeResultServices["Id"].asString()); + if(!dataNodeResultServices["Name"].isNull()) + servicesObject.name = dataNodeResultServices["Name"].asString(); + if(!dataNodeResultServices["GatewayUniqueId"].isNull()) + servicesObject.gatewayUniqueId = dataNodeResultServices["GatewayUniqueId"].asString(); + if(!dataNodeResultServices["GatewayId"].isNull()) + servicesObject.gatewayId = std::stol(dataNodeResultServices["GatewayId"].asString()); + if(!dataNodeResultServices["SourceType"].isNull()) + servicesObject.sourceType = dataNodeResultServices["SourceType"].asString(); + if(!dataNodeResultServices["Namespace"].isNull()) + servicesObject._namespace = dataNodeResultServices["Namespace"].asString(); + if(!dataNodeResultServices["GroupName"].isNull()) + servicesObject.groupName = dataNodeResultServices["GroupName"].asString(); + if(!dataNodeResultServices["SourceId"].isNull()) + servicesObject.sourceId = std::stol(dataNodeResultServices["SourceId"].asString()); + if(!dataNodeResultServices["ServiceNameInRegistry"].isNull()) + servicesObject.serviceNameInRegistry = dataNodeResultServices["ServiceNameInRegistry"].asString(); + if(!dataNodeResultServices["MetaInfo"].isNull()) + servicesObject.metaInfo = dataNodeResultServices["MetaInfo"].asString(); + if(!dataNodeResultServices["GmtCreate"].isNull()) + servicesObject.gmtCreate = dataNodeResultServices["GmtCreate"].asString(); + if(!dataNodeResultServices["GmtModified"].isNull()) + servicesObject.gmtModified = dataNodeResultServices["GmtModified"].asString(); + if(!dataNodeResultServices["ServiceProtocol"].isNull()) + servicesObject.serviceProtocol = dataNodeResultServices["ServiceProtocol"].asString(); + if(!dataNodeResultServices["ServicePort"].isNull()) + servicesObject.servicePort = std::stol(dataNodeResultServices["ServicePort"].asString()); + auto allVersionsNode = dataNodeResultServices["Versions"]["VersionsItem"]; + for (auto dataNodeResultServicesVersionsVersionsItem : allVersionsNode) + { + Data::Services::VersionsItem versionsObject; + if(!dataNodeResultServicesVersionsVersionsItem["Name"].isNull()) + versionsObject.name = dataNodeResultServicesVersionsVersionsItem["Name"].asString(); + servicesObject.versions.push_back(versionsObject); + } + auto allIps = value["Ips"]["Ips"]; + for (auto value : allIps) + servicesObject.ips.push_back(value.asString()); + data_.result.push_back(servicesObject); + } + 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 ListGatewayServiceResult::getMessage()const +{ + return message_; +} + +int ListGatewayServiceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListGatewayServiceResult::Data ListGatewayServiceResult::getData()const +{ + return data_; +} + +int ListGatewayServiceResult::getCode()const +{ + return code_; +} + +bool ListGatewayServiceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListGatewaySlbRequest.cc b/mse/src/model/ListGatewaySlbRequest.cc new file mode 100644 index 000000000..5693314cc --- /dev/null +++ b/mse/src/model/ListGatewaySlbRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::ListGatewaySlbRequest; + +ListGatewaySlbRequest::ListGatewaySlbRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListGatewaySlb") { + setMethod(HttpRequest::Method::Get); +} + +ListGatewaySlbRequest::~ListGatewaySlbRequest() {} + +std::string ListGatewaySlbRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void ListGatewaySlbRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string ListGatewaySlbRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListGatewaySlbRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListGatewaySlbResult.cc b/mse/src/model/ListGatewaySlbResult.cc new file mode 100644 index 000000000..e7b32f2a0 --- /dev/null +++ b/mse/src/model/ListGatewaySlbResult.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; + +ListGatewaySlbResult::ListGatewaySlbResult() : + ServiceResult() +{} + +ListGatewaySlbResult::ListGatewaySlbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGatewaySlbResult::~ListGatewaySlbResult() +{} + +void ListGatewaySlbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Sources"]; + for (auto valueDataSources : allDataNode) + { + Sources dataObject; + if(!valueDataSources["Id"].isNull()) + dataObject.id = valueDataSources["Id"].asString(); + if(!valueDataSources["SlbId"].isNull()) + dataObject.slbId = valueDataSources["SlbId"].asString(); + if(!valueDataSources["SlbIp"].isNull()) + dataObject.slbIp = valueDataSources["SlbIp"].asString(); + if(!valueDataSources["SlbPort"].isNull()) + dataObject.slbPort = valueDataSources["SlbPort"].asString(); + if(!valueDataSources["Type"].isNull()) + dataObject.type = valueDataSources["Type"].asString(); + if(!valueDataSources["GatewayId"].isNull()) + dataObject.gatewayId = valueDataSources["GatewayId"].asString(); + if(!valueDataSources["GmtCreate"].isNull()) + dataObject.gmtCreate = valueDataSources["GmtCreate"].asString(); + if(!valueDataSources["GatewaySlbMode"].isNull()) + dataObject.gatewaySlbMode = valueDataSources["GatewaySlbMode"].asString(); + if(!valueDataSources["GatewaySlbStatus"].isNull()) + dataObject.gatewaySlbStatus = valueDataSources["GatewaySlbStatus"].asString(); + if(!valueDataSources["StatusDesc"].isNull()) + dataObject.statusDesc = valueDataSources["StatusDesc"].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 ListGatewaySlbResult::getMessage()const +{ + return message_; +} + +int ListGatewaySlbResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListGatewaySlbResult::getData()const +{ + return data_; +} + +int ListGatewaySlbResult::getCode()const +{ + return code_; +} + +bool ListGatewaySlbResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListListenersByConfigRequest.cc b/mse/src/model/ListListenersByConfigRequest.cc new file mode 100644 index 000000000..e6e16f4d6 --- /dev/null +++ b/mse/src/model/ListListenersByConfigRequest.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::ListListenersByConfigRequest; + +ListListenersByConfigRequest::ListListenersByConfigRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListListenersByConfig") { + setMethod(HttpRequest::Method::Post); +} + +ListListenersByConfigRequest::~ListListenersByConfigRequest() {} + +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_; +} + +void ListListenersByConfigRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string ListListenersByConfigRequest::getRequestPars() const { + return requestPars_; +} + +void ListListenersByConfigRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = 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_; +} + +void ListListenersByConfigRequest::setGroup(const std::string &group) { + group_ = group; + setParameter(std::string("Group"), group); +} + diff --git a/mse/src/model/ListListenersByConfigResult.cc b/mse/src/model/ListListenersByConfigResult.cc new file mode 100644 index 000000000..72c78f4e6 --- /dev/null +++ b/mse/src/model/ListListenersByConfigResult.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; + +ListListenersByConfigResult::ListListenersByConfigResult() : + ServiceResult() +{} + +ListListenersByConfigResult::ListListenersByConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListListenersByConfigResult::~ListListenersByConfigResult() +{} + +void ListListenersByConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListenersNode = value["Listeners"]["Listener"]; + for (auto valueListenersListener : allListenersNode) + { + Listener listenersObject; + if(!valueListenersListener["Ip"].isNull()) + listenersObject.ip = valueListenersListener["Ip"].asString(); + if(!valueListenersListener["Md5"].isNull()) + listenersObject.md5 = valueListenersListener["Md5"].asString(); + listeners_.push_back(listenersObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListListenersByConfigResult::getHttpCode()const +{ + return httpCode_; +} + +std::vector ListListenersByConfigResult::getListeners()const +{ + return listeners_; +} + +int ListListenersByConfigResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListListenersByConfigResult::getMessage()const +{ + return message_; +} + +int ListListenersByConfigResult::getPageSize()const +{ + return pageSize_; +} + +int ListListenersByConfigResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListListenersByConfigResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListListenersByConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListListenersByIpRequest.cc b/mse/src/model/ListListenersByIpRequest.cc new file mode 100644 index 000000000..3962f0c2d --- /dev/null +++ b/mse/src/model/ListListenersByIpRequest.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::ListListenersByIpRequest; + +ListListenersByIpRequest::ListListenersByIpRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListListenersByIp") { + setMethod(HttpRequest::Method::Post); +} + +ListListenersByIpRequest::~ListListenersByIpRequest() {} + +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_; +} + +void ListListenersByIpRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string ListListenersByIpRequest::getRequestPars() const { + return requestPars_; +} + +void ListListenersByIpRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string ListListenersByIpRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListListenersByIpRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListListenersByIpResult.cc b/mse/src/model/ListListenersByIpResult.cc new file mode 100644 index 000000000..d3bdb0752 --- /dev/null +++ b/mse/src/model/ListListenersByIpResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +ListListenersByIpResult::ListListenersByIpResult() : + ServiceResult() +{} + +ListListenersByIpResult::ListListenersByIpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListListenersByIpResult::~ListListenersByIpResult() +{} + +void ListListenersByIpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListenersNode = value["Listeners"]["Listener"]; + for (auto valueListenersListener : allListenersNode) + { + Listener listenersObject; + if(!valueListenersListener["Md5"].isNull()) + listenersObject.md5 = valueListenersListener["Md5"].asString(); + if(!valueListenersListener["DataId"].isNull()) + listenersObject.dataId = valueListenersListener["DataId"].asString(); + if(!valueListenersListener["Group"].isNull()) + listenersObject.group = valueListenersListener["Group"].asString(); + listeners_.push_back(listenersObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListListenersByIpResult::getHttpCode()const +{ + return httpCode_; +} + +std::vector ListListenersByIpResult::getListeners()const +{ + return listeners_; +} + +int ListListenersByIpResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListListenersByIpResult::getMessage()const +{ + return message_; +} + +int ListListenersByIpResult::getPageSize()const +{ + return pageSize_; +} + +int ListListenersByIpResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListListenersByIpResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListListenersByIpResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListNacosConfigsRequest.cc b/mse/src/model/ListNacosConfigsRequest.cc new file mode 100644 index 000000000..6c16863a4 --- /dev/null +++ b/mse/src/model/ListNacosConfigsRequest.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::ListNacosConfigsRequest; + +ListNacosConfigsRequest::ListNacosConfigsRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListNacosConfigs") { + setMethod(HttpRequest::Method::Post); +} + +ListNacosConfigsRequest::~ListNacosConfigsRequest() {} + +int ListNacosConfigsRequest::getPageNum() const { + return pageNum_; +} + +void ListNacosConfigsRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +std::string ListNacosConfigsRequest::getTags() const { + return tags_; +} + +void ListNacosConfigsRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string ListNacosConfigsRequest::getInstanceId() const { + return instanceId_; +} + +void ListNacosConfigsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListNacosConfigsRequest::getDataId() const { + return dataId_; +} + +void ListNacosConfigsRequest::setDataId(const std::string &dataId) { + dataId_ = dataId; + setParameter(std::string("DataId"), dataId); +} + +std::string ListNacosConfigsRequest::getAppName() const { + return appName_; +} + +void ListNacosConfigsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string ListNacosConfigsRequest::getRegionId() const { + return regionId_; +} + +void ListNacosConfigsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListNacosConfigsRequest::getNamespaceId() const { + return namespaceId_; +} + +void ListNacosConfigsRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string ListNacosConfigsRequest::getRequestPars() const { + return requestPars_; +} + +void ListNacosConfigsRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +int ListNacosConfigsRequest::getPageSize() const { + return pageSize_; +} + +void ListNacosConfigsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListNacosConfigsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListNacosConfigsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string ListNacosConfigsRequest::getGroup() const { + return group_; +} + +void ListNacosConfigsRequest::setGroup(const std::string &group) { + group_ = group; + setParameter(std::string("Group"), group); +} + diff --git a/mse/src/model/ListNacosConfigsResult.cc b/mse/src/model/ListNacosConfigsResult.cc new file mode 100644 index 000000000..3fa691a77 --- /dev/null +++ b/mse/src/model/ListNacosConfigsResult.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; + +ListNacosConfigsResult::ListNacosConfigsResult() : + ServiceResult() +{} + +ListNacosConfigsResult::ListNacosConfigsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListNacosConfigsResult::~ListNacosConfigsResult() +{} + +void ListNacosConfigsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allConfigurationsNode = value["Configurations"]["NacosConfigForListModel"]; + for (auto valueConfigurationsNacosConfigForListModel : allConfigurationsNode) + { + NacosConfigForListModel configurationsObject; + if(!valueConfigurationsNacosConfigForListModel["AppName"].isNull()) + configurationsObject.appName = valueConfigurationsNacosConfigForListModel["AppName"].asString(); + if(!valueConfigurationsNacosConfigForListModel["DataId"].isNull()) + configurationsObject.dataId = valueConfigurationsNacosConfigForListModel["DataId"].asString(); + if(!valueConfigurationsNacosConfigForListModel["Id"].isNull()) + configurationsObject.id = valueConfigurationsNacosConfigForListModel["Id"].asString(); + if(!valueConfigurationsNacosConfigForListModel["Group"].isNull()) + configurationsObject.group = valueConfigurationsNacosConfigForListModel["Group"].asString(); + configurations_.push_back(configurationsObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListNacosConfigsResult::getHttpCode()const +{ + return httpCode_; +} + +int ListNacosConfigsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListNacosConfigsResult::getMessage()const +{ + return message_; +} + +int ListNacosConfigsResult::getPageSize()const +{ + return pageSize_; +} + +int ListNacosConfigsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListNacosConfigsResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector ListNacosConfigsResult::getConfigurations()const +{ + return configurations_; +} + +int ListNacosConfigsResult::getCode()const +{ + return code_; +} + +bool ListNacosConfigsResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListNacosHistoryConfigsRequest.cc b/mse/src/model/ListNacosHistoryConfigsRequest.cc new file mode 100644 index 000000000..8fa14e61f --- /dev/null +++ b/mse/src/model/ListNacosHistoryConfigsRequest.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::ListNacosHistoryConfigsRequest; + +ListNacosHistoryConfigsRequest::ListNacosHistoryConfigsRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListNacosHistoryConfigs") { + setMethod(HttpRequest::Method::Post); +} + +ListNacosHistoryConfigsRequest::~ListNacosHistoryConfigsRequest() {} + +int ListNacosHistoryConfigsRequest::getPageNum() const { + return pageNum_; +} + +void ListNacosHistoryConfigsRequest::setPageNum(int pageNum) { + pageNum_ = 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_; +} + +void ListNacosHistoryConfigsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListNacosHistoryConfigsRequest::getNamespaceId() const { + return namespaceId_; +} + +void ListNacosHistoryConfigsRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string ListNacosHistoryConfigsRequest::getRequestPars() const { + return requestPars_; +} + +void ListNacosHistoryConfigsRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +int ListNacosHistoryConfigsRequest::getPageSize() const { + return pageSize_; +} + +void ListNacosHistoryConfigsRequest::setPageSize(int pageSize) { + pageSize_ = 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_; +} + +void ListNacosHistoryConfigsRequest::setGroup(const std::string &group) { + group_ = group; + setParameter(std::string("Group"), group); +} + diff --git a/mse/src/model/ListNacosHistoryConfigsResult.cc b/mse/src/model/ListNacosHistoryConfigsResult.cc new file mode 100644 index 000000000..ae0e29711 --- /dev/null +++ b/mse/src/model/ListNacosHistoryConfigsResult.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; + +ListNacosHistoryConfigsResult::ListNacosHistoryConfigsResult() : + ServiceResult() +{} + +ListNacosHistoryConfigsResult::ListNacosHistoryConfigsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListNacosHistoryConfigsResult::~ListNacosHistoryConfigsResult() +{} + +void ListNacosHistoryConfigsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allHistoryItemsNode = value["HistoryItems"]["HistoryItem"]; + for (auto valueHistoryItemsHistoryItem : allHistoryItemsNode) + { + HistoryItem historyItemsObject; + if(!valueHistoryItemsHistoryItem["AppName"].isNull()) + historyItemsObject.appName = valueHistoryItemsHistoryItem["AppName"].asString(); + if(!valueHistoryItemsHistoryItem["DataId"].isNull()) + historyItemsObject.dataId = valueHistoryItemsHistoryItem["DataId"].asString(); + if(!valueHistoryItemsHistoryItem["Group"].isNull()) + historyItemsObject.group = valueHistoryItemsHistoryItem["Group"].asString(); + if(!valueHistoryItemsHistoryItem["LastModifiedTime"].isNull()) + historyItemsObject.lastModifiedTime = std::stol(valueHistoryItemsHistoryItem["LastModifiedTime"].asString()); + if(!valueHistoryItemsHistoryItem["Id"].isNull()) + historyItemsObject.id = std::stol(valueHistoryItemsHistoryItem["Id"].asString()); + if(!valueHistoryItemsHistoryItem["OpType"].isNull()) + historyItemsObject.opType = valueHistoryItemsHistoryItem["OpType"].asString(); + historyItems_.push_back(historyItemsObject); + } + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListNacosHistoryConfigsResult::getHttpCode()const +{ + return httpCode_; +} + +int ListNacosHistoryConfigsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListNacosHistoryConfigsResult::getMessage()const +{ + return message_; +} + +int ListNacosHistoryConfigsResult::getPageSize()const +{ + return pageSize_; +} + +int ListNacosHistoryConfigsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListNacosHistoryConfigsResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector ListNacosHistoryConfigsResult::getHistoryItems()const +{ + return historyItems_; +} + +bool ListNacosHistoryConfigsResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListSSLCertRequest.cc b/mse/src/model/ListSSLCertRequest.cc new file mode 100644 index 000000000..4aece0347 --- /dev/null +++ b/mse/src/model/ListSSLCertRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::ListSSLCertRequest; + +ListSSLCertRequest::ListSSLCertRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListSSLCert") { + setMethod(HttpRequest::Method::Get); +} + +ListSSLCertRequest::~ListSSLCertRequest() {} + +std::string ListSSLCertRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void ListSSLCertRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string ListSSLCertRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListSSLCertRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListSSLCertResult.cc b/mse/src/model/ListSSLCertResult.cc new file mode 100644 index 000000000..4cba451ae --- /dev/null +++ b/mse/src/model/ListSSLCertResult.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; + +ListSSLCertResult::ListSSLCertResult() : + ServiceResult() +{} + +ListSSLCertResult::ListSSLCertResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSSLCertResult::~ListSSLCertResult() +{} + +void ListSSLCertResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Domains"]; + for (auto valueDataDomains : allDataNode) + { + Domains dataObject; + if(!valueDataDomains["CertIdentifier"].isNull()) + dataObject.certIdentifier = valueDataDomains["CertIdentifier"].asString(); + if(!valueDataDomains["CertName"].isNull()) + dataObject.certName = valueDataDomains["CertName"].asString(); + if(!valueDataDomains["CommonName"].isNull()) + dataObject.commonName = valueDataDomains["CommonName"].asString(); + if(!valueDataDomains["Sans"].isNull()) + dataObject.sans = valueDataDomains["Sans"].asString(); + if(!valueDataDomains["BeforeDate"].isNull()) + dataObject.beforeDate = valueDataDomains["BeforeDate"].asString(); + if(!valueDataDomains["AfterDate"].isNull()) + dataObject.afterDate = valueDataDomains["AfterDate"].asString(); + if(!valueDataDomains["Algorithm"].isNull()) + dataObject.algorithm = valueDataDomains["Algorithm"].asString(); + if(!valueDataDomains["Issuer"].isNull()) + dataObject.issuer = valueDataDomains["Issuer"].asString(); + if(!valueDataDomains["GmtBefore"].isNull()) + dataObject.gmtBefore = valueDataDomains["GmtBefore"].asString(); + if(!valueDataDomains["GmtAfter"].isNull()) + dataObject.gmtAfter = valueDataDomains["GmtAfter"].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 ListSSLCertResult::getMessage()const +{ + return message_; +} + +int ListSSLCertResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListSSLCertResult::getData()const +{ + return data_; +} + +int ListSSLCertResult::getCode()const +{ + return code_; +} + +bool ListSSLCertResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListServiceSourceRequest.cc b/mse/src/model/ListServiceSourceRequest.cc new file mode 100644 index 000000000..ca2d3d7c7 --- /dev/null +++ b/mse/src/model/ListServiceSourceRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::ListServiceSourceRequest; + +ListServiceSourceRequest::ListServiceSourceRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListServiceSource") { + setMethod(HttpRequest::Method::Get); +} + +ListServiceSourceRequest::~ListServiceSourceRequest() {} + +std::string ListServiceSourceRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void ListServiceSourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string ListServiceSourceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListServiceSourceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListServiceSourceResult.cc b/mse/src/model/ListServiceSourceResult.cc new file mode 100644 index 000000000..3deee4b95 --- /dev/null +++ b/mse/src/model/ListServiceSourceResult.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; + +ListServiceSourceResult::ListServiceSourceResult() : + ServiceResult() +{} + +ListServiceSourceResult::ListServiceSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServiceSourceResult::~ListServiceSourceResult() +{} + +void ListServiceSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Sources"]; + for (auto valueDataSources : allDataNode) + { + Sources dataObject; + if(!valueDataSources["Id"].isNull()) + dataObject.id = std::stol(valueDataSources["Id"].asString()); + if(!valueDataSources["Name"].isNull()) + dataObject.name = valueDataSources["Name"].asString(); + if(!valueDataSources["Address"].isNull()) + dataObject.address = valueDataSources["Address"].asString(); + if(!valueDataSources["Type"].isNull()) + dataObject.type = valueDataSources["Type"].asString(); + if(!valueDataSources["Source"].isNull()) + dataObject.source = valueDataSources["Source"].asString(); + if(!valueDataSources["BindingWithGateway"].isNull()) + dataObject.bindingWithGateway = std::stoi(valueDataSources["BindingWithGateway"].asString()); + if(!valueDataSources["GatewayId"].isNull()) + dataObject.gatewayId = std::stol(valueDataSources["GatewayId"].asString()); + if(!valueDataSources["GmtCreate"].isNull()) + dataObject.gmtCreate = valueDataSources["GmtCreate"].asString(); + if(!valueDataSources["GmtModified"].isNull()) + dataObject.gmtModified = valueDataSources["GmtModified"].asString(); + if(!valueDataSources["SourceUniqueId"].isNull()) + dataObject.sourceUniqueId = valueDataSources["SourceUniqueId"].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 ListServiceSourceResult::getMessage()const +{ + return message_; +} + +int ListServiceSourceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListServiceSourceResult::getData()const +{ + return data_; +} + +int ListServiceSourceResult::getCode()const +{ + return code_; +} + +bool ListServiceSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ListZnodeChildrenRequest.cc b/mse/src/model/ListZnodeChildrenRequest.cc new file mode 100644 index 000000000..57c5ef226 --- /dev/null +++ b/mse/src/model/ListZnodeChildrenRequest.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::ListZnodeChildrenRequest; + +ListZnodeChildrenRequest::ListZnodeChildrenRequest() + : RpcServiceRequest("mse", "2019-05-31", "ListZnodeChildren") { + setMethod(HttpRequest::Method::Get); +} + +ListZnodeChildrenRequest::~ListZnodeChildrenRequest() {} + +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_; +} + +void ListZnodeChildrenRequest::setPath(const std::string &path) { + path_ = path; + setParameter(std::string("Path"), path); +} + +std::string ListZnodeChildrenRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListZnodeChildrenRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ListZnodeChildrenResult.cc b/mse/src/model/ListZnodeChildrenResult.cc new file mode 100644 index 000000000..e086a64b8 --- /dev/null +++ b/mse/src/model/ListZnodeChildrenResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +ListZnodeChildrenResult::ListZnodeChildrenResult() : + ServiceResult() +{} + +ListZnodeChildrenResult::ListZnodeChildrenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListZnodeChildrenResult::~ListZnodeChildrenResult() +{} + +void ListZnodeChildrenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ZnodeModel"]; + for (auto valueDataZnodeModel : allDataNode) + { + ZnodeModel dataObject; + if(!valueDataZnodeModel["Data"].isNull()) + dataObject.data = valueDataZnodeModel["Data"].asString(); + if(!valueDataZnodeModel["Path"].isNull()) + dataObject.path = valueDataZnodeModel["Path"].asString(); + if(!valueDataZnodeModel["Dir"].isNull()) + dataObject.dir = valueDataZnodeModel["Dir"].asString() == "true"; + if(!valueDataZnodeModel["Name"].isNull()) + dataObject.name = valueDataZnodeModel["Name"].asString(); + data_.push_back(dataObject); + } + 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 ListZnodeChildrenResult::getMessage()const +{ + return message_; +} + +std::vector ListZnodeChildrenResult::getData()const +{ + return data_; +} + +std::string ListZnodeChildrenResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListZnodeChildrenResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ModifyGovernanceKubernetesClusterRequest.cc b/mse/src/model/ModifyGovernanceKubernetesClusterRequest.cc new file mode 100644 index 000000000..dda759936 --- /dev/null +++ b/mse/src/model/ModifyGovernanceKubernetesClusterRequest.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::ModifyGovernanceKubernetesClusterRequest; + +ModifyGovernanceKubernetesClusterRequest::ModifyGovernanceKubernetesClusterRequest() + : RpcServiceRequest("mse", "2019-05-31", "ModifyGovernanceKubernetesCluster") { + setMethod(HttpRequest::Method::Post); +} + +ModifyGovernanceKubernetesClusterRequest::~ModifyGovernanceKubernetesClusterRequest() {} + +std::string ModifyGovernanceKubernetesClusterRequest::getNamespaceInfos() const { + return namespaceInfos_; +} + +void ModifyGovernanceKubernetesClusterRequest::setNamespaceInfos(const std::string &namespaceInfos) { + namespaceInfos_ = namespaceInfos; + setParameter(std::string("NamespaceInfos"), namespaceInfos); +} + +std::string ModifyGovernanceKubernetesClusterRequest::getClusterId() const { + return clusterId_; +} + +void ModifyGovernanceKubernetesClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + 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_; +} + +void ModifyGovernanceKubernetesClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ModifyGovernanceKubernetesClusterResult.cc b/mse/src/model/ModifyGovernanceKubernetesClusterResult.cc new file mode 100644 index 000000000..a4807bc1d --- /dev/null +++ b/mse/src/model/ModifyGovernanceKubernetesClusterResult.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; + +ModifyGovernanceKubernetesClusterResult::ModifyGovernanceKubernetesClusterResult() : + ServiceResult() +{} + +ModifyGovernanceKubernetesClusterResult::ModifyGovernanceKubernetesClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyGovernanceKubernetesClusterResult::~ModifyGovernanceKubernetesClusterResult() +{} + +void ModifyGovernanceKubernetesClusterResult::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() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ModifyGovernanceKubernetesClusterResult::getMessage()const +{ + return message_; +} + +int ModifyGovernanceKubernetesClusterResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool ModifyGovernanceKubernetesClusterResult::getData()const +{ + return data_; +} + +int ModifyGovernanceKubernetesClusterResult::getCode()const +{ + return code_; +} + +bool ModifyGovernanceKubernetesClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/PullServicesRequest.cc b/mse/src/model/PullServicesRequest.cc new file mode 100644 index 000000000..db90bbb7a --- /dev/null +++ b/mse/src/model/PullServicesRequest.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::PullServicesRequest; + +PullServicesRequest::PullServicesRequest() + : RpcServiceRequest("mse", "2019-05-31", "PullServices") { + setMethod(HttpRequest::Method::Get); +} + +PullServicesRequest::~PullServicesRequest() {} + +std::string PullServicesRequest::getSourceId() const { + return sourceId_; +} + +void PullServicesRequest::setSourceId(const std::string &sourceId) { + sourceId_ = sourceId; + setParameter(std::string("SourceId"), sourceId); +} + +std::string PullServicesRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void PullServicesRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string PullServicesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void PullServicesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string PullServicesRequest::getSourceType() const { + return sourceType_; +} + +void PullServicesRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); +} + diff --git a/mse/src/model/PullServicesResult.cc b/mse/src/model/PullServicesResult.cc new file mode 100644 index 000000000..f6cfc7252 --- /dev/null +++ b/mse/src/model/PullServicesResult.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; + +PullServicesResult::PullServicesResult() : + ServiceResult() +{} + +PullServicesResult::PullServicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PullServicesResult::~PullServicesResult() +{} + +void PullServicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["PullServices"]; + for (auto valueDataPullServices : allDataNode) + { + PullServices dataObject; + if(!valueDataPullServices["Namespace"].isNull()) + dataObject._namespace = valueDataPullServices["Namespace"].asString(); + if(!valueDataPullServices["GroupName"].isNull()) + dataObject.groupName = valueDataPullServices["GroupName"].asString(); + auto allServicesNode = valueDataPullServices["Services"]["ServicesItem"]; + for (auto valueDataPullServicesServicesServicesItem : allServicesNode) + { + PullServices::ServicesItem servicesObject; + if(!valueDataPullServicesServicesServicesItem["Name"].isNull()) + servicesObject.name = valueDataPullServicesServicesServicesItem["Name"].asString(); + if(!valueDataPullServicesServicesServicesItem["Namespace"].isNull()) + servicesObject._namespace = valueDataPullServicesServicesServicesItem["Namespace"].asString(); + if(!valueDataPullServicesServicesServicesItem["GroupName"].isNull()) + servicesObject.groupName = valueDataPullServicesServicesServicesItem["GroupName"].asString(); + if(!valueDataPullServicesServicesServicesItem["SourceId"].isNull()) + servicesObject.sourceId = valueDataPullServicesServicesServicesItem["SourceId"].asString(); + if(!valueDataPullServicesServicesServicesItem["SourceType"].isNull()) + servicesObject.sourceType = valueDataPullServicesServicesServicesItem["SourceType"].asString(); + dataObject.services.push_back(servicesObject); + } + 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 PullServicesResult::getMessage()const +{ + return message_; +} + +int PullServicesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector PullServicesResult::getData()const +{ + return data_; +} + +int PullServicesResult::getCode()const +{ + return code_; +} + +bool PullServicesResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryBusinessLocationsRequest.cc b/mse/src/model/QueryBusinessLocationsRequest.cc new file mode 100644 index 000000000..4c86974da --- /dev/null +++ b/mse/src/model/QueryBusinessLocationsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::QueryBusinessLocationsRequest; + +QueryBusinessLocationsRequest::QueryBusinessLocationsRequest() + : RpcServiceRequest("mse", "2019-05-31", "QueryBusinessLocations") { + setMethod(HttpRequest::Method::Get); +} + +QueryBusinessLocationsRequest::~QueryBusinessLocationsRequest() {} + +std::string QueryBusinessLocationsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void QueryBusinessLocationsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/QueryBusinessLocationsResult.cc b/mse/src/model/QueryBusinessLocationsResult.cc new file mode 100644 index 000000000..e9de8804c --- /dev/null +++ b/mse/src/model/QueryBusinessLocationsResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +QueryBusinessLocationsResult::QueryBusinessLocationsResult() : + ServiceResult() +{} + +QueryBusinessLocationsResult::QueryBusinessLocationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryBusinessLocationsResult::~QueryBusinessLocationsResult() +{} + +void QueryBusinessLocationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["LocationData"]; + for (auto valueDataLocationData : allDataNode) + { + LocationData dataObject; + if(!valueDataLocationData["Ordering"].isNull()) + dataObject.ordering = std::stoi(valueDataLocationData["Ordering"].asString()); + if(!valueDataLocationData["Type"].isNull()) + dataObject.type = valueDataLocationData["Type"].asString(); + if(!valueDataLocationData["DistrictEnName"].isNull()) + dataObject.districtEnName = valueDataLocationData["DistrictEnName"].asString(); + if(!valueDataLocationData["ShowName"].isNull()) + dataObject.showName = valueDataLocationData["ShowName"].asString(); + if(!valueDataLocationData["DistrictCnName"].isNull()) + dataObject.districtCnName = valueDataLocationData["DistrictCnName"].asString(); + if(!valueDataLocationData["EnName"].isNull()) + dataObject.enName = valueDataLocationData["EnName"].asString(); + if(!valueDataLocationData["DistrictId"].isNull()) + dataObject.districtId = valueDataLocationData["DistrictId"].asString(); + if(!valueDataLocationData["DistrictShowName"].isNull()) + dataObject.districtShowName = valueDataLocationData["DistrictShowName"].asString(); + if(!valueDataLocationData["Description"].isNull()) + dataObject.description = valueDataLocationData["Description"].asString(); + if(!valueDataLocationData["EnDescription"].isNull()) + dataObject.enDescription = valueDataLocationData["EnDescription"].asString(); + if(!valueDataLocationData["CnName"].isNull()) + dataObject.cnName = valueDataLocationData["CnName"].asString(); + if(!valueDataLocationData["Name"].isNull()) + dataObject.name = valueDataLocationData["Name"].asString(); + if(!valueDataLocationData["DistrictOrdering"].isNull()) + dataObject.districtOrdering = std::stoi(valueDataLocationData["DistrictOrdering"].asString()); + data_.push_back(dataObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string QueryBusinessLocationsResult::getMessage()const +{ + return message_; +} + +std::vector QueryBusinessLocationsResult::getData()const +{ + return data_; +} + +std::string QueryBusinessLocationsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string QueryBusinessLocationsResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryClusterDetailRequest.cc b/mse/src/model/QueryClusterDetailRequest.cc new file mode 100644 index 000000000..edd7b3594 --- /dev/null +++ b/mse/src/model/QueryClusterDetailRequest.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::QueryClusterDetailRequest; + +QueryClusterDetailRequest::QueryClusterDetailRequest() + : RpcServiceRequest("mse", "2019-05-31", "QueryClusterDetail") { + setMethod(HttpRequest::Method::Post); +} + +QueryClusterDetailRequest::~QueryClusterDetailRequest() {} + +std::string QueryClusterDetailRequest::getOrderId() const { + return orderId_; +} + +void QueryClusterDetailRequest::setOrderId(const std::string &orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), orderId); +} + +std::string QueryClusterDetailRequest::getClusterId() const { + return clusterId_; +} + +void QueryClusterDetailRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string QueryClusterDetailRequest::getInstanceId() const { + return instanceId_; +} + +void QueryClusterDetailRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string QueryClusterDetailRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void QueryClusterDetailRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/QueryClusterDetailResult.cc b/mse/src/model/QueryClusterDetailResult.cc new file mode 100644 index 000000000..668829e72 --- /dev/null +++ b/mse/src/model/QueryClusterDetailResult.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +QueryClusterDetailResult::QueryClusterDetailResult() : + ServiceResult() +{} + +QueryClusterDetailResult::QueryClusterDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryClusterDetailResult::~QueryClusterDetailResult() +{} + +void QueryClusterDetailResult::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["VpcId"].isNull()) + data_.vpcId = dataNode["VpcId"].asString(); + if(!dataNode["CreateTime"].isNull()) + data_.createTime = dataNode["CreateTime"].asString(); + if(!dataNode["IntranetAddress"].isNull()) + data_.intranetAddress = dataNode["IntranetAddress"].asString(); + if(!dataNode["DiskType"].isNull()) + data_.diskType = dataNode["DiskType"].asString(); + if(!dataNode["PubNetworkFlow"].isNull()) + data_.pubNetworkFlow = dataNode["PubNetworkFlow"].asString(); + if(!dataNode["DiskCapacity"].isNull()) + data_.diskCapacity = std::stol(dataNode["DiskCapacity"].asString()); + if(!dataNode["MemoryCapacity"].isNull()) + data_.memoryCapacity = std::stol(dataNode["MemoryCapacity"].asString()); + if(!dataNode["ClusterAliasName"].isNull()) + data_.clusterAliasName = dataNode["ClusterAliasName"].asString(); + if(!dataNode["InstanceCount"].isNull()) + data_.instanceCount = std::stoi(dataNode["InstanceCount"].asString()); + if(!dataNode["IntranetPort"].isNull()) + data_.intranetPort = dataNode["IntranetPort"].asString(); + if(!dataNode["ClusterId"].isNull()) + data_.clusterId = dataNode["ClusterId"].asString(); + if(!dataNode["IntranetDomain"].isNull()) + data_.intranetDomain = dataNode["IntranetDomain"].asString(); + if(!dataNode["InternetDomain"].isNull()) + data_.internetDomain = dataNode["InternetDomain"].asString(); + if(!dataNode["PayInfo"].isNull()) + data_.payInfo = dataNode["PayInfo"].asString(); + if(!dataNode["InternetAddress"].isNull()) + data_.internetAddress = dataNode["InternetAddress"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["AclEntryList"].isNull()) + data_.aclEntryList = dataNode["AclEntryList"].asString(); + if(!dataNode["HealthStatus"].isNull()) + data_.healthStatus = dataNode["HealthStatus"].asString(); + if(!dataNode["InitCostTime"].isNull()) + data_.initCostTime = std::stol(dataNode["InitCostTime"].asString()); + if(!dataNode["RegionId"].isNull()) + data_.regionId = dataNode["RegionId"].asString(); + if(!dataNode["AclId"].isNull()) + data_.aclId = dataNode["AclId"].asString(); + if(!dataNode["Cpu"].isNull()) + data_.cpu = std::stoi(dataNode["Cpu"].asString()); + if(!dataNode["ClusterType"].isNull()) + data_.clusterType = dataNode["ClusterType"].asString(); + if(!dataNode["ClusterName"].isNull()) + data_.clusterName = dataNode["ClusterName"].asString(); + if(!dataNode["InitStatus"].isNull()) + data_.initStatus = dataNode["InitStatus"].asString(); + if(!dataNode["InternetPort"].isNull()) + data_.internetPort = dataNode["InternetPort"].asString(); + if(!dataNode["AppVersion"].isNull()) + data_.appVersion = dataNode["AppVersion"].asString(); + if(!dataNode["NetType"].isNull()) + data_.netType = dataNode["NetType"].asString(); + if(!dataNode["ClusterVersion"].isNull()) + data_.clusterVersion = dataNode["ClusterVersion"].asString(); + if(!dataNode["ClusterSpecification"].isNull()) + data_.clusterSpecification = dataNode["ClusterSpecification"].asString(); + if(!dataNode["VSwitchId"].isNull()) + data_.vSwitchId = dataNode["VSwitchId"].asString(); + if(!dataNode["ConnectionType"].isNull()) + data_.connectionType = dataNode["ConnectionType"].asString(); + if(!dataNode["MseVersion"].isNull()) + data_.mseVersion = dataNode["MseVersion"].asString(); + if(!dataNode["ChargeType"].isNull()) + data_.chargeType = dataNode["ChargeType"].asString(); + auto allInstanceModelsNode = dataNode["InstanceModels"]["InstanceModel"]; + for (auto dataNodeInstanceModelsInstanceModel : allInstanceModelsNode) + { + Data::InstanceModel instanceModelObject; + if(!dataNodeInstanceModelsInstanceModel["PodName"].isNull()) + instanceModelObject.podName = dataNodeInstanceModelsInstanceModel["PodName"].asString(); + if(!dataNodeInstanceModelsInstanceModel["SingleTunnelVip"].isNull()) + instanceModelObject.singleTunnelVip = dataNodeInstanceModelsInstanceModel["SingleTunnelVip"].asString(); + if(!dataNodeInstanceModelsInstanceModel["InternetIp"].isNull()) + instanceModelObject.internetIp = dataNodeInstanceModelsInstanceModel["InternetIp"].asString(); + if(!dataNodeInstanceModelsInstanceModel["Ip"].isNull()) + instanceModelObject.ip = dataNodeInstanceModelsInstanceModel["Ip"].asString(); + if(!dataNodeInstanceModelsInstanceModel["Role"].isNull()) + instanceModelObject.role = dataNodeInstanceModelsInstanceModel["Role"].asString(); + if(!dataNodeInstanceModelsInstanceModel["HealthStatus"].isNull()) + instanceModelObject.healthStatus = dataNodeInstanceModelsInstanceModel["HealthStatus"].asString(); + if(!dataNodeInstanceModelsInstanceModel["CreationTimestamp"].isNull()) + instanceModelObject.creationTimestamp = dataNodeInstanceModelsInstanceModel["CreationTimestamp"].asString(); + data_.instanceModels.push_back(instanceModelObject); + } + 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 QueryClusterDetailResult::getMessage()const +{ + return message_; +} + +QueryClusterDetailResult::Data QueryClusterDetailResult::getData()const +{ + return data_; +} + +std::string QueryClusterDetailResult::getErrorCode()const +{ + return errorCode_; +} + +bool QueryClusterDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryClusterDiskSpecificationRequest.cc b/mse/src/model/QueryClusterDiskSpecificationRequest.cc new file mode 100644 index 000000000..509178433 --- /dev/null +++ b/mse/src/model/QueryClusterDiskSpecificationRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::QueryClusterDiskSpecificationRequest; + +QueryClusterDiskSpecificationRequest::QueryClusterDiskSpecificationRequest() + : RpcServiceRequest("mse", "2019-05-31", "QueryClusterDiskSpecification") { + setMethod(HttpRequest::Method::Post); +} + +QueryClusterDiskSpecificationRequest::~QueryClusterDiskSpecificationRequest() {} + +std::string QueryClusterDiskSpecificationRequest::getClusterType() const { + return clusterType_; +} + +void QueryClusterDiskSpecificationRequest::setClusterType(const std::string &clusterType) { + clusterType_ = clusterType; + setParameter(std::string("ClusterType"), clusterType); +} + +std::string QueryClusterDiskSpecificationRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void QueryClusterDiskSpecificationRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/QueryClusterDiskSpecificationResult.cc b/mse/src/model/QueryClusterDiskSpecificationResult.cc new file mode 100644 index 000000000..a11d8f5c4 --- /dev/null +++ b/mse/src/model/QueryClusterDiskSpecificationResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +QueryClusterDiskSpecificationResult::QueryClusterDiskSpecificationResult() : + ServiceResult() +{} + +QueryClusterDiskSpecificationResult::QueryClusterDiskSpecificationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryClusterDiskSpecificationResult::~QueryClusterDiskSpecificationResult() +{} + +void QueryClusterDiskSpecificationResult::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["Step"].isNull()) + data_.step = std::stoi(dataNode["Step"].asString()); + if(!dataNode["Max"].isNull()) + data_.max = std::stoi(dataNode["Max"].asString()); + if(!dataNode["Min"].isNull()) + data_.min = std::stoi(dataNode["Min"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string QueryClusterDiskSpecificationResult::getMessage()const +{ + return message_; +} + +int QueryClusterDiskSpecificationResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +QueryClusterDiskSpecificationResult::Data QueryClusterDiskSpecificationResult::getData()const +{ + return data_; +} + +std::string QueryClusterDiskSpecificationResult::getErrorCode()const +{ + return errorCode_; +} + +std::string QueryClusterDiskSpecificationResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +int QueryClusterDiskSpecificationResult::getCode()const +{ + return code_; +} + +bool QueryClusterDiskSpecificationResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryClusterSpecificationRequest.cc b/mse/src/model/QueryClusterSpecificationRequest.cc new file mode 100644 index 000000000..1504f096f --- /dev/null +++ b/mse/src/model/QueryClusterSpecificationRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::QueryClusterSpecificationRequest; + +QueryClusterSpecificationRequest::QueryClusterSpecificationRequest() + : RpcServiceRequest("mse", "2019-05-31", "QueryClusterSpecification") { + setMethod(HttpRequest::Method::Post); +} + +QueryClusterSpecificationRequest::~QueryClusterSpecificationRequest() {} + +std::string QueryClusterSpecificationRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void QueryClusterSpecificationRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/QueryClusterSpecificationResult.cc b/mse/src/model/QueryClusterSpecificationResult.cc new file mode 100644 index 000000000..5d640bd04 --- /dev/null +++ b/mse/src/model/QueryClusterSpecificationResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +QueryClusterSpecificationResult::QueryClusterSpecificationResult() : + ServiceResult() +{} + +QueryClusterSpecificationResult::QueryClusterSpecificationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryClusterSpecificationResult::~QueryClusterSpecificationResult() +{} + +void QueryClusterSpecificationResult::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["ClusterSpecificationName"].isNull()) + dataObject.clusterSpecificationName = valueDataDataItem["ClusterSpecificationName"].asString(); + if(!valueDataDataItem["DiskCapacity"].isNull()) + dataObject.diskCapacity = valueDataDataItem["DiskCapacity"].asString(); + if(!valueDataDataItem["MemoryCapacity"].isNull()) + dataObject.memoryCapacity = valueDataDataItem["MemoryCapacity"].asString(); + if(!valueDataDataItem["InstanceCount"].isNull()) + dataObject.instanceCount = valueDataDataItem["InstanceCount"].asString(); + if(!valueDataDataItem["MaxTps"].isNull()) + dataObject.maxTps = valueDataDataItem["MaxTps"].asString(); + if(!valueDataDataItem["MaxCon"].isNull()) + dataObject.maxCon = valueDataDataItem["MaxCon"].asString(); + if(!valueDataDataItem["CpuCapacity"].isNull()) + dataObject.cpuCapacity = valueDataDataItem["CpuCapacity"].asString(); + data_.push_back(dataObject); + } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryClusterSpecificationResult::getMessage()const +{ + return message_; +} + +int QueryClusterSpecificationResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector QueryClusterSpecificationResult::getData()const +{ + return data_; +} + +std::string QueryClusterSpecificationResult::getErrorCode()const +{ + return errorCode_; +} + +int QueryClusterSpecificationResult::getCode()const +{ + return code_; +} + +bool QueryClusterSpecificationResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryConfigRequest.cc b/mse/src/model/QueryConfigRequest.cc new file mode 100644 index 000000000..f2cead6e6 --- /dev/null +++ b/mse/src/model/QueryConfigRequest.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::QueryConfigRequest; + +QueryConfigRequest::QueryConfigRequest() + : RpcServiceRequest("mse", "2019-05-31", "QueryConfig") { + setMethod(HttpRequest::Method::Get); +} + +QueryConfigRequest::~QueryConfigRequest() {} + +std::string QueryConfigRequest::getConfigType() const { + return configType_; +} + +void QueryConfigRequest::setConfigType(const std::string &configType) { + configType_ = configType; + setParameter(std::string("ConfigType"), configType); +} + +std::string QueryConfigRequest::getClusterId() const { + return clusterId_; +} + +void QueryConfigRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string QueryConfigRequest::getInstanceId() const { + return instanceId_; +} + +void QueryConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = 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_; +} + +void QueryConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/QueryConfigResult.cc b/mse/src/model/QueryConfigResult.cc new file mode 100644 index 000000000..d1dda9374 --- /dev/null +++ b/mse/src/model/QueryConfigResult.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; + +QueryConfigResult::QueryConfigResult() : + ServiceResult() +{} + +QueryConfigResult::QueryConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryConfigResult::~QueryConfigResult() +{} + +void QueryConfigResult::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["MaxClientCnxns"].isNull()) + data_.maxClientCnxns = dataNode["MaxClientCnxns"].asString(); + if(!dataNode["ConfigAuthSupported"].isNull()) + data_.configAuthSupported = dataNode["ConfigAuthSupported"].asString() == "true"; + if(!dataNode["InitLimit"].isNull()) + data_.initLimit = dataNode["InitLimit"].asString(); + if(!dataNode["MCPEnabled"].isNull()) + data_.mCPEnabled = dataNode["MCPEnabled"].asString() == "true"; + if(!dataNode["OpenSuperAcl"].isNull()) + data_.openSuperAcl = dataNode["OpenSuperAcl"].asString() == "true"; + if(!dataNode["RestartFlag"].isNull()) + data_.restartFlag = dataNode["RestartFlag"].asString() == "true"; + if(!dataNode["JvmFlagsCustom"].isNull()) + data_.jvmFlagsCustom = dataNode["JvmFlagsCustom"].asString(); + if(!dataNode["AutopurgePurgeInterval"].isNull()) + data_.autopurgePurgeInterval = dataNode["AutopurgePurgeInterval"].asString(); + if(!dataNode["AutopurgeSnapRetainCount"].isNull()) + data_.autopurgeSnapRetainCount = dataNode["AutopurgeSnapRetainCount"].asString(); + if(!dataNode["SyncLimit"].isNull()) + data_.syncLimit = dataNode["SyncLimit"].asString(); + if(!dataNode["ConfigAuthEnabled"].isNull()) + data_.configAuthEnabled = dataNode["ConfigAuthEnabled"].asString() == "true"; + if(!dataNode["ClusterName"].isNull()) + data_.clusterName = dataNode["ClusterName"].asString(); + if(!dataNode["MCPSupported"].isNull()) + data_.mCPSupported = dataNode["MCPSupported"].asString() == "true"; + if(!dataNode["JuteMaxbuffer"].isNull()) + data_.juteMaxbuffer = dataNode["JuteMaxbuffer"].asString(); + if(!dataNode["TickTime"].isNull()) + data_.tickTime = dataNode["TickTime"].asString(); + if(!dataNode["PassWord"].isNull()) + data_.passWord = dataNode["PassWord"].asString(); + if(!dataNode["UserName"].isNull()) + data_.userName = dataNode["UserName"].asString(); + if(!dataNode["ConfigSecretSupported"].isNull()) + data_.configSecretSupported = dataNode["ConfigSecretSupported"].asString() == "true"; + if(!dataNode["ConfigSecretEnabled"].isNull()) + data_.configSecretEnabled = dataNode["ConfigSecretEnabled"].asString() == "true"; + if(!dataNode["NamingCreateServiceSupported"].isNull()) + data_.namingCreateServiceSupported = dataNode["NamingCreateServiceSupported"].asString() == "true"; + if(!dataNode["MinSessionTimeout"].isNull()) + data_.minSessionTimeout = dataNode["MinSessionTimeout"].asString(); + if(!dataNode["MaxSessionTimeout"].isNull()) + data_.maxSessionTimeout = dataNode["MaxSessionTimeout"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string QueryConfigResult::getMessage()const +{ + return message_; +} + +int QueryConfigResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +QueryConfigResult::Data QueryConfigResult::getData()const +{ + return data_; +} + +int QueryConfigResult::getCode()const +{ + return code_; +} + +bool QueryConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryGatewayRegionRequest.cc b/mse/src/model/QueryGatewayRegionRequest.cc new file mode 100644 index 000000000..6ba86a467 --- /dev/null +++ b/mse/src/model/QueryGatewayRegionRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::QueryGatewayRegionRequest; + +QueryGatewayRegionRequest::QueryGatewayRegionRequest() + : RpcServiceRequest("mse", "2019-05-31", "QueryGatewayRegion") { + setMethod(HttpRequest::Method::Get); +} + +QueryGatewayRegionRequest::~QueryGatewayRegionRequest() {} + +std::string QueryGatewayRegionRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void QueryGatewayRegionRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/QueryGatewayRegionResult.cc b/mse/src/model/QueryGatewayRegionResult.cc new file mode 100644 index 000000000..16bc8b1db --- /dev/null +++ b/mse/src/model/QueryGatewayRegionResult.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; + +QueryGatewayRegionResult::QueryGatewayRegionResult() : + ServiceResult() +{} + +QueryGatewayRegionResult::QueryGatewayRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryGatewayRegionResult::~QueryGatewayRegionResult() +{} + +void QueryGatewayRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["types"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryGatewayRegionResult::getMessage()const +{ + return message_; +} + +int QueryGatewayRegionResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector QueryGatewayRegionResult::getData()const +{ + return data_; +} + +int QueryGatewayRegionResult::getCode()const +{ + return code_; +} + +bool QueryGatewayRegionResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryGatewayTypeRequest.cc b/mse/src/model/QueryGatewayTypeRequest.cc new file mode 100644 index 000000000..ef655b70c --- /dev/null +++ b/mse/src/model/QueryGatewayTypeRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::QueryGatewayTypeRequest; + +QueryGatewayTypeRequest::QueryGatewayTypeRequest() + : RpcServiceRequest("mse", "2019-05-31", "QueryGatewayType") { + setMethod(HttpRequest::Method::Get); +} + +QueryGatewayTypeRequest::~QueryGatewayTypeRequest() {} + +std::string QueryGatewayTypeRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void QueryGatewayTypeRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/QueryGatewayTypeResult.cc b/mse/src/model/QueryGatewayTypeResult.cc new file mode 100644 index 000000000..0c1cfe124 --- /dev/null +++ b/mse/src/model/QueryGatewayTypeResult.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; + +QueryGatewayTypeResult::QueryGatewayTypeResult() : + ServiceResult() +{} + +QueryGatewayTypeResult::QueryGatewayTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryGatewayTypeResult::~QueryGatewayTypeResult() +{} + +void QueryGatewayTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["types"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryGatewayTypeResult::getMessage()const +{ + return message_; +} + +int QueryGatewayTypeResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector QueryGatewayTypeResult::getData()const +{ + return data_; +} + +int QueryGatewayTypeResult::getCode()const +{ + return code_; +} + +bool QueryGatewayTypeResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryGovernanceKubernetesClusterRequest.cc b/mse/src/model/QueryGovernanceKubernetesClusterRequest.cc new file mode 100644 index 000000000..e4fab3c8a --- /dev/null +++ b/mse/src/model/QueryGovernanceKubernetesClusterRequest.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::QueryGovernanceKubernetesClusterRequest; + +QueryGovernanceKubernetesClusterRequest::QueryGovernanceKubernetesClusterRequest() + : RpcServiceRequest("mse", "2019-05-31", "QueryGovernanceKubernetesCluster") { + setMethod(HttpRequest::Method::Get); +} + +QueryGovernanceKubernetesClusterRequest::~QueryGovernanceKubernetesClusterRequest() {} + +std::string QueryGovernanceKubernetesClusterRequest::getClusterName() const { + return clusterName_; +} + +void QueryGovernanceKubernetesClusterRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + 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_; +} + +void QueryGovernanceKubernetesClusterRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int QueryGovernanceKubernetesClusterRequest::getPageSize() const { + return pageSize_; +} + +void QueryGovernanceKubernetesClusterRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string QueryGovernanceKubernetesClusterRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void QueryGovernanceKubernetesClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/QueryGovernanceKubernetesClusterResult.cc b/mse/src/model/QueryGovernanceKubernetesClusterResult.cc new file mode 100644 index 000000000..8b912bc14 --- /dev/null +++ b/mse/src/model/QueryGovernanceKubernetesClusterResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +QueryGovernanceKubernetesClusterResult::QueryGovernanceKubernetesClusterResult() : + ServiceResult() +{} + +QueryGovernanceKubernetesClusterResult::QueryGovernanceKubernetesClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryGovernanceKubernetesClusterResult::~QueryGovernanceKubernetesClusterResult() +{} + +void QueryGovernanceKubernetesClusterResult::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"]["ClusterList"]; + for (auto dataNodeResultClusterList : allResultNode) + { + Data::ClusterList clusterListObject; + if(!dataNodeResultClusterList["ClusterName"].isNull()) + clusterListObject.clusterName = dataNodeResultClusterList["ClusterName"].asString(); + if(!dataNodeResultClusterList["ClusterId"].isNull()) + clusterListObject.clusterId = dataNodeResultClusterList["ClusterId"].asString(); + if(!dataNodeResultClusterList["Region"].isNull()) + clusterListObject.region = dataNodeResultClusterList["Region"].asString(); + if(!dataNodeResultClusterList["K8sVersion"].isNull()) + clusterListObject.k8sVersion = dataNodeResultClusterList["K8sVersion"].asString(); + if(!dataNodeResultClusterList["NamespaceInfos"].isNull()) + clusterListObject.namespaceInfos = dataNodeResultClusterList["NamespaceInfos"].asString(); + if(!dataNodeResultClusterList["PilotStartTime"].isNull()) + 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"; + +} + +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/QueryMonitorRequest.cc b/mse/src/model/QueryMonitorRequest.cc new file mode 100644 index 000000000..1abc22ca5 --- /dev/null +++ b/mse/src/model/QueryMonitorRequest.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::QueryMonitorRequest; + +QueryMonitorRequest::QueryMonitorRequest() + : RpcServiceRequest("mse", "2019-05-31", "QueryMonitor") { + setMethod(HttpRequest::Method::Get); +} + +QueryMonitorRequest::~QueryMonitorRequest() {} + +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_; +} + +void QueryMonitorRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +std::string QueryMonitorRequest::getClusterId() const { + return clusterId_; +} + +void QueryMonitorRequest::setClusterId(const std::string &clusterId) { + clusterId_ = 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_; +} + +void QueryMonitorRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = 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_; +} + +void QueryMonitorRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +long QueryMonitorRequest::getStep() const { + return step_; +} + +void QueryMonitorRequest::setStep(long step) { + step_ = step; + setParameter(std::string("Step"), std::to_string(step)); +} + diff --git a/mse/src/model/QueryMonitorResult.cc b/mse/src/model/QueryMonitorResult.cc new file mode 100644 index 000000000..2d088e346 --- /dev/null +++ b/mse/src/model/QueryMonitorResult.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; + +QueryMonitorResult::QueryMonitorResult() : + ServiceResult() +{} + +QueryMonitorResult::QueryMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryMonitorResult::~QueryMonitorResult() +{} + +void QueryMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryMonitorResult::getMessage()const +{ + return message_; +} + +std::string QueryMonitorResult::getData()const +{ + return data_; +} + +std::string QueryMonitorResult::getErrorCode()const +{ + return errorCode_; +} + +bool QueryMonitorResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QuerySlbSpecRequest.cc b/mse/src/model/QuerySlbSpecRequest.cc new file mode 100644 index 000000000..0f2818197 --- /dev/null +++ b/mse/src/model/QuerySlbSpecRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::QuerySlbSpecRequest; + +QuerySlbSpecRequest::QuerySlbSpecRequest() + : RpcServiceRequest("mse", "2019-05-31", "QuerySlbSpec") { + setMethod(HttpRequest::Method::Get); +} + +QuerySlbSpecRequest::~QuerySlbSpecRequest() {} + +std::string QuerySlbSpecRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void QuerySlbSpecRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/QuerySlbSpecResult.cc b/mse/src/model/QuerySlbSpecResult.cc new file mode 100644 index 000000000..a889072f5 --- /dev/null +++ b/mse/src/model/QuerySlbSpecResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +QuerySlbSpecResult::QuerySlbSpecResult() : + ServiceResult() +{} + +QuerySlbSpecResult::QuerySlbSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySlbSpecResult::~QuerySlbSpecResult() +{} + +void QuerySlbSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["SlbSpecs"]; + for (auto valueDataSlbSpecs : allDataNode) + { + SlbSpecs dataObject; + if(!valueDataSlbSpecs["Id"].isNull()) + dataObject.id = std::stoi(valueDataSlbSpecs["Id"].asString()); + if(!valueDataSlbSpecs["Spec"].isNull()) + dataObject.spec = valueDataSlbSpecs["Spec"].asString(); + if(!valueDataSlbSpecs["Name"].isNull()) + dataObject.name = valueDataSlbSpecs["Name"].asString(); + if(!valueDataSlbSpecs["MaxConnection"].isNull()) + dataObject.maxConnection = valueDataSlbSpecs["MaxConnection"].asString(); + if(!valueDataSlbSpecs["NewConnectionPerSecond"].isNull()) + dataObject.newConnectionPerSecond = valueDataSlbSpecs["NewConnectionPerSecond"].asString(); + if(!valueDataSlbSpecs["Qps"].isNull()) + dataObject.qps = valueDataSlbSpecs["Qps"].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 QuerySlbSpecResult::getMessage()const +{ + return message_; +} + +int QuerySlbSpecResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector QuerySlbSpecResult::getData()const +{ + return data_; +} + +int QuerySlbSpecResult::getCode()const +{ + return code_; +} + +bool QuerySlbSpecResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/QueryZnodeDetailRequest.cc b/mse/src/model/QueryZnodeDetailRequest.cc new file mode 100644 index 000000000..c57ccfb26 --- /dev/null +++ b/mse/src/model/QueryZnodeDetailRequest.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::QueryZnodeDetailRequest; + +QueryZnodeDetailRequest::QueryZnodeDetailRequest() + : RpcServiceRequest("mse", "2019-05-31", "QueryZnodeDetail") { + setMethod(HttpRequest::Method::Get); +} + +QueryZnodeDetailRequest::~QueryZnodeDetailRequest() {} + +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_; +} + +void QueryZnodeDetailRequest::setPath(const std::string &path) { + path_ = path; + setParameter(std::string("Path"), path); +} + +std::string QueryZnodeDetailRequest::getRequestPars() const { + return requestPars_; +} + +void QueryZnodeDetailRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string QueryZnodeDetailRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void QueryZnodeDetailRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/QueryZnodeDetailResult.cc b/mse/src/model/QueryZnodeDetailResult.cc new file mode 100644 index 000000000..73c32d559 --- /dev/null +++ b/mse/src/model/QueryZnodeDetailResult.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; + +QueryZnodeDetailResult::QueryZnodeDetailResult() : + ServiceResult() +{} + +QueryZnodeDetailResult::QueryZnodeDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryZnodeDetailResult::~QueryZnodeDetailResult() +{} + +void QueryZnodeDetailResult::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["Data"].isNull()) + data_.data = dataNode["Data"].asString(); + if(!dataNode["Path"].isNull()) + data_.path = dataNode["Path"].asString(); + if(!dataNode["Dir"].isNull()) + data_.dir = dataNode["Dir"].asString() == "true"; + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].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(); + +} + +std::string QueryZnodeDetailResult::getMessage()const +{ + return message_; +} + +QueryZnodeDetailResult::Data QueryZnodeDetailResult::getData()const +{ + return data_; +} + +std::string QueryZnodeDetailResult::getErrorCode()const +{ + return errorCode_; +} + +std::string QueryZnodeDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/RestartClusterRequest.cc b/mse/src/model/RestartClusterRequest.cc new file mode 100644 index 000000000..a9dcd9599 --- /dev/null +++ b/mse/src/model/RestartClusterRequest.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::RestartClusterRequest; + +RestartClusterRequest::RestartClusterRequest() + : RpcServiceRequest("mse", "2019-05-31", "RestartCluster") { + setMethod(HttpRequest::Method::Post); +} + +RestartClusterRequest::~RestartClusterRequest() {} + +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_; +} + +void RestartClusterRequest::setPodNameList(const std::string &podNameList) { + podNameList_ = 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_; +} + +void RestartClusterRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string RestartClusterRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void RestartClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/RestartClusterResult.cc b/mse/src/model/RestartClusterResult.cc new file mode 100644 index 000000000..fc32f0824 --- /dev/null +++ b/mse/src/model/RestartClusterResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +RestartClusterResult::RestartClusterResult() : + ServiceResult() +{} + +RestartClusterResult::RestartClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartClusterResult::~RestartClusterResult() +{} + +void RestartClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].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 RestartClusterResult::getMessage()const +{ + return message_; +} + +std::string RestartClusterResult::getErrorCode()const +{ + return errorCode_; +} + +bool RestartClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/RetryClusterRequest.cc b/mse/src/model/RetryClusterRequest.cc new file mode 100644 index 000000000..fb5c9d9ee --- /dev/null +++ b/mse/src/model/RetryClusterRequest.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::RetryClusterRequest; + +RetryClusterRequest::RetryClusterRequest() + : RpcServiceRequest("mse", "2019-05-31", "RetryCluster") { + setMethod(HttpRequest::Method::Post); +} + +RetryClusterRequest::~RetryClusterRequest() {} + +std::string RetryClusterRequest::getClusterId() const { + return clusterId_; +} + +void RetryClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string RetryClusterRequest::getInstanceId() const { + return instanceId_; +} + +void RetryClusterRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = 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_; +} + +void RetryClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/RetryClusterResult.cc b/mse/src/model/RetryClusterResult.cc new file mode 100644 index 000000000..6f4495644 --- /dev/null +++ b/mse/src/model/RetryClusterResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +RetryClusterResult::RetryClusterResult() : + ServiceResult() +{} + +RetryClusterResult::RetryClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RetryClusterResult::~RetryClusterResult() +{} + +void RetryClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].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 RetryClusterResult::getMessage()const +{ + return message_; +} + +std::string RetryClusterResult::getErrorCode()const +{ + return errorCode_; +} + +bool RetryClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/ScalingClusterRequest.cc b/mse/src/model/ScalingClusterRequest.cc new file mode 100644 index 000000000..371ef667c --- /dev/null +++ b/mse/src/model/ScalingClusterRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::ScalingClusterRequest; + +ScalingClusterRequest::ScalingClusterRequest() + : RpcServiceRequest("mse", "2019-05-31", "ScalingCluster") { + setMethod(HttpRequest::Method::Post); +} + +ScalingClusterRequest::~ScalingClusterRequest() {} + +std::string ScalingClusterRequest::getClusterSpecification() const { + return clusterSpecification_; +} + +void ScalingClusterRequest::setClusterSpecification(const std::string &clusterSpecification) { + clusterSpecification_ = clusterSpecification; + setParameter(std::string("ClusterSpecification"), clusterSpecification); +} + +int ScalingClusterRequest::getCpu() const { + return cpu_; +} + +void ScalingClusterRequest::setCpu(int cpu) { + cpu_ = cpu; + setParameter(std::string("Cpu"), std::to_string(cpu)); +} + +std::string ScalingClusterRequest::getClusterId() const { + return clusterId_; +} + +void ScalingClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ScalingClusterRequest::getInstanceId() const { + return instanceId_; +} + +void ScalingClusterRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +long ScalingClusterRequest::getMemoryCapacity() const { + return memoryCapacity_; +} + +void ScalingClusterRequest::setMemoryCapacity(long memoryCapacity) { + memoryCapacity_ = memoryCapacity; + setParameter(std::string("MemoryCapacity"), std::to_string(memoryCapacity)); +} + +int ScalingClusterRequest::getInstanceCount() const { + return instanceCount_; +} + +void ScalingClusterRequest::setInstanceCount(int instanceCount) { + instanceCount_ = instanceCount; + setParameter(std::string("InstanceCount"), std::to_string(instanceCount)); +} + +std::string ScalingClusterRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ScalingClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/ScalingClusterResult.cc b/mse/src/model/ScalingClusterResult.cc new file mode 100644 index 000000000..9bef5ac56 --- /dev/null +++ b/mse/src/model/ScalingClusterResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +ScalingClusterResult::ScalingClusterResult() : + ServiceResult() +{} + +ScalingClusterResult::ScalingClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ScalingClusterResult::~ScalingClusterResult() +{} + +void ScalingClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].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 ScalingClusterResult::getMessage()const +{ + return message_; +} + +std::string ScalingClusterResult::getErrorCode()const +{ + return errorCode_; +} + +bool ScalingClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/SelectGatewaySlbRequest.cc b/mse/src/model/SelectGatewaySlbRequest.cc new file mode 100644 index 000000000..dadc44d85 --- /dev/null +++ b/mse/src/model/SelectGatewaySlbRequest.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::SelectGatewaySlbRequest; + +SelectGatewaySlbRequest::SelectGatewaySlbRequest() + : RpcServiceRequest("mse", "2019-05-31", "SelectGatewaySlb") { + setMethod(HttpRequest::Method::Get); +} + +SelectGatewaySlbRequest::~SelectGatewaySlbRequest() {} + +std::string SelectGatewaySlbRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void SelectGatewaySlbRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string SelectGatewaySlbRequest::getType() const { + return type_; +} + +void SelectGatewaySlbRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string SelectGatewaySlbRequest::getName() const { + return name_; +} + +void SelectGatewaySlbRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string SelectGatewaySlbRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void SelectGatewaySlbRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/SelectGatewaySlbResult.cc b/mse/src/model/SelectGatewaySlbResult.cc new file mode 100644 index 000000000..d1b9e1e5c --- /dev/null +++ b/mse/src/model/SelectGatewaySlbResult.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; + +SelectGatewaySlbResult::SelectGatewaySlbResult() : + ServiceResult() +{} + +SelectGatewaySlbResult::SelectGatewaySlbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SelectGatewaySlbResult::~SelectGatewaySlbResult() +{} + +void SelectGatewaySlbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Sources"]; + for (auto valueDataSources : allDataNode) + { + Sources dataObject; + if(!valueDataSources["SlbId"].isNull()) + dataObject.slbId = valueDataSources["SlbId"].asString(); + if(!valueDataSources["SlbName"].isNull()) + dataObject.slbName = valueDataSources["SlbName"].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 SelectGatewaySlbResult::getMessage()const +{ + return message_; +} + +int SelectGatewaySlbResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector SelectGatewaySlbResult::getData()const +{ + return data_; +} + +int SelectGatewaySlbResult::getCode()const +{ + return code_; +} + +bool SelectGatewaySlbResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateAclRequest.cc b/mse/src/model/UpdateAclRequest.cc new file mode 100644 index 000000000..56dc10a0a --- /dev/null +++ b/mse/src/model/UpdateAclRequest.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::UpdateAclRequest; + +UpdateAclRequest::UpdateAclRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateAcl") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAclRequest::~UpdateAclRequest() {} + +std::string UpdateAclRequest::getClusterId() const { + return clusterId_; +} + +void UpdateAclRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string UpdateAclRequest::getAclEntryList() const { + return aclEntryList_; +} + +void UpdateAclRequest::setAclEntryList(const std::string &aclEntryList) { + aclEntryList_ = aclEntryList; + setParameter(std::string("AclEntryList"), aclEntryList); +} + +std::string UpdateAclRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateAclRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string UpdateAclRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateAclRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpdateAclResult.cc b/mse/src/model/UpdateAclResult.cc new file mode 100644 index 000000000..d0a33e7db --- /dev/null +++ b/mse/src/model/UpdateAclResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +UpdateAclResult::UpdateAclResult() : + ServiceResult() +{} + +UpdateAclResult::UpdateAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAclResult::~UpdateAclResult() +{} + +void UpdateAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].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 UpdateAclResult::getMessage()const +{ + return message_; +} + +std::string UpdateAclResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateAclResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateBlackWhiteListRequest.cc b/mse/src/model/UpdateBlackWhiteListRequest.cc new file mode 100644 index 000000000..3f1d397c0 --- /dev/null +++ b/mse/src/model/UpdateBlackWhiteListRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::UpdateBlackWhiteListRequest; + +UpdateBlackWhiteListRequest::UpdateBlackWhiteListRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateBlackWhiteList") { + setMethod(HttpRequest::Method::Post); +} + +UpdateBlackWhiteListRequest::~UpdateBlackWhiteListRequest() {} + +std::string UpdateBlackWhiteListRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateBlackWhiteListRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string UpdateBlackWhiteListRequest::getType() const { + return type_; +} + +void UpdateBlackWhiteListRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string UpdateBlackWhiteListRequest::getContent() const { + return content_; +} + +void UpdateBlackWhiteListRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); +} + +long UpdateBlackWhiteListRequest::getId() const { + return id_; +} + +void UpdateBlackWhiteListRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); +} + +std::string UpdateBlackWhiteListRequest::getResourceType() const { + return resourceType_; +} + +void UpdateBlackWhiteListRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string UpdateBlackWhiteListRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateBlackWhiteListRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string UpdateBlackWhiteListRequest::getStatus() const { + return status_; +} + +void UpdateBlackWhiteListRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/mse/src/model/UpdateBlackWhiteListResult.cc b/mse/src/model/UpdateBlackWhiteListResult.cc new file mode 100644 index 000000000..3ed811365 --- /dev/null +++ b/mse/src/model/UpdateBlackWhiteListResult.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; + +UpdateBlackWhiteListResult::UpdateBlackWhiteListResult() : + ServiceResult() +{} + +UpdateBlackWhiteListResult::UpdateBlackWhiteListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateBlackWhiteListResult::~UpdateBlackWhiteListResult() +{} + +void UpdateBlackWhiteListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string UpdateBlackWhiteListResult::getMessage()const +{ + return message_; +} + +int UpdateBlackWhiteListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long UpdateBlackWhiteListResult::getData()const +{ + return data_; +} + +int UpdateBlackWhiteListResult::getCode()const +{ + return code_; +} + +bool UpdateBlackWhiteListResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateClusterRequest.cc b/mse/src/model/UpdateClusterRequest.cc new file mode 100644 index 000000000..663f7d894 --- /dev/null +++ b/mse/src/model/UpdateClusterRequest.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::UpdateClusterRequest; + +UpdateClusterRequest::UpdateClusterRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateCluster") { + setMethod(HttpRequest::Method::Post); +} + +UpdateClusterRequest::~UpdateClusterRequest() {} + +std::string UpdateClusterRequest::getClusterAliasName() const { + return clusterAliasName_; +} + +void UpdateClusterRequest::setClusterAliasName(const std::string &clusterAliasName) { + clusterAliasName_ = clusterAliasName; + setParameter(std::string("ClusterAliasName"), clusterAliasName); +} + +std::string UpdateClusterRequest::getClusterId() const { + return clusterId_; +} + +void UpdateClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string UpdateClusterRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateClusterRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = 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_; +} + +void UpdateClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpdateClusterResult.cc b/mse/src/model/UpdateClusterResult.cc new file mode 100644 index 000000000..7ce684f51 --- /dev/null +++ b/mse/src/model/UpdateClusterResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +UpdateClusterResult::UpdateClusterResult() : + ServiceResult() +{} + +UpdateClusterResult::UpdateClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateClusterResult::~UpdateClusterResult() +{} + +void UpdateClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].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 UpdateClusterResult::getMessage()const +{ + return message_; +} + +std::string UpdateClusterResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateConfigRequest.cc b/mse/src/model/UpdateConfigRequest.cc new file mode 100644 index 000000000..27d7a7f1e --- /dev/null +++ b/mse/src/model/UpdateConfigRequest.cc @@ -0,0 +1,207 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::UpdateConfigRequest; + +UpdateConfigRequest::UpdateConfigRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateConfig") { + setMethod(HttpRequest::Method::Post); +} + +UpdateConfigRequest::~UpdateConfigRequest() {} + +std::string UpdateConfigRequest::getOpenSuperAcl() const { + return openSuperAcl_; +} + +void UpdateConfigRequest::setOpenSuperAcl(const std::string &openSuperAcl) { + openSuperAcl_ = openSuperAcl; + setBodyParameter(std::string("OpenSuperAcl"), openSuperAcl); +} + +bool UpdateConfigRequest::getConfigAuthEnabled() const { + return configAuthEnabled_; +} + +void UpdateConfigRequest::setConfigAuthEnabled(bool configAuthEnabled) { + configAuthEnabled_ = configAuthEnabled; + setParameter(std::string("ConfigAuthEnabled"), configAuthEnabled ? "true" : "false"); +} + +std::string UpdateConfigRequest::getPassWord() const { + return passWord_; +} + +void UpdateConfigRequest::setPassWord(const std::string &passWord) { + passWord_ = passWord; + setParameter(std::string("PassWord"), passWord); +} + +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_; +} + +void UpdateConfigRequest::setMaxClientCnxns(const std::string &maxClientCnxns) { + maxClientCnxns_ = maxClientCnxns; + setParameter(std::string("MaxClientCnxns"), maxClientCnxns); +} + +std::string UpdateConfigRequest::getRequestPars() const { + return requestPars_; +} + +void UpdateConfigRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = 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); +} + +std::string UpdateConfigRequest::getConfigType() const { + return configType_; +} + +void UpdateConfigRequest::setConfigType(const std::string &configType) { + configType_ = configType; + setParameter(std::string("ConfigType"), configType); +} + +std::string UpdateConfigRequest::getAutopurgeSnapRetainCount() const { + return autopurgeSnapRetainCount_; +} + +void UpdateConfigRequest::setAutopurgeSnapRetainCount(const std::string &autopurgeSnapRetainCount) { + autopurgeSnapRetainCount_ = autopurgeSnapRetainCount; + 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_; +} + +void UpdateConfigRequest::setConfigSecretEnabled(bool configSecretEnabled) { + configSecretEnabled_ = configSecretEnabled; + setParameter(std::string("ConfigSecretEnabled"), configSecretEnabled ? "true" : "false"); +} + +bool UpdateConfigRequest::getMCPEnabled() const { + return mCPEnabled_; +} + +void UpdateConfigRequest::setMCPEnabled(bool mCPEnabled) { + mCPEnabled_ = 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_; +} + +void UpdateConfigRequest::setSyncLimit(const std::string &syncLimit) { + syncLimit_ = syncLimit; + setParameter(std::string("SyncLimit"), syncLimit); +} + +std::string UpdateConfigRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string UpdateConfigRequest::getAutopurgePurgeInterval() const { + return autopurgePurgeInterval_; +} + +void UpdateConfigRequest::setAutopurgePurgeInterval(const std::string &autopurgePurgeInterval) { + autopurgePurgeInterval_ = autopurgePurgeInterval; + setParameter(std::string("AutopurgePurgeInterval"), autopurgePurgeInterval); +} + +std::string UpdateConfigRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::string UpdateConfigRequest::getInitLimit() const { + return initLimit_; +} + +void UpdateConfigRequest::setInitLimit(const std::string &initLimit) { + initLimit_ = initLimit; + setParameter(std::string("InitLimit"), initLimit); +} + +std::string UpdateConfigRequest::getUserName() const { + return userName_; +} + +void UpdateConfigRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); +} + diff --git a/mse/src/model/UpdateConfigResult.cc b/mse/src/model/UpdateConfigResult.cc new file mode 100644 index 000000000..f34a14a3c --- /dev/null +++ b/mse/src/model/UpdateConfigResult.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; + +UpdateConfigResult::UpdateConfigResult() : + ServiceResult() +{} + +UpdateConfigResult::UpdateConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateConfigResult::~UpdateConfigResult() +{} + +void UpdateConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string UpdateConfigResult::getMessage()const +{ + return message_; +} + +int UpdateConfigResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +int UpdateConfigResult::getCode()const +{ + return code_; +} + +bool UpdateConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateEngineNamespaceRequest.cc b/mse/src/model/UpdateEngineNamespaceRequest.cc new file mode 100644 index 000000000..6da52ec74 --- /dev/null +++ b/mse/src/model/UpdateEngineNamespaceRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::UpdateEngineNamespaceRequest; + +UpdateEngineNamespaceRequest::UpdateEngineNamespaceRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateEngineNamespace") { + setMethod(HttpRequest::Method::Post); +} + +UpdateEngineNamespaceRequest::~UpdateEngineNamespaceRequest() {} + +std::string UpdateEngineNamespaceRequest::getClusterId() const { + return clusterId_; +} + +void UpdateEngineNamespaceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string UpdateEngineNamespaceRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateEngineNamespaceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = 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_; +} + +void UpdateEngineNamespaceRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string UpdateEngineNamespaceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateEngineNamespaceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + 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_; +} + +void UpdateEngineNamespaceRequest::setDesc(const std::string &desc) { + desc_ = desc; + setParameter(std::string("Desc"), desc); +} + diff --git a/mse/src/model/UpdateEngineNamespaceResult.cc b/mse/src/model/UpdateEngineNamespaceResult.cc new file mode 100644 index 000000000..ce0abe074 --- /dev/null +++ b/mse/src/model/UpdateEngineNamespaceResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +UpdateEngineNamespaceResult::UpdateEngineNamespaceResult() : + ServiceResult() +{} + +UpdateEngineNamespaceResult::UpdateEngineNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateEngineNamespaceResult::~UpdateEngineNamespaceResult() +{} + +void UpdateEngineNamespaceResult::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["Type"].isNull()) + data_.type = std::stoi(dataNode["Type"].asString()); + if(!dataNode["NamespaceShowName"].isNull()) + data_.namespaceShowName = dataNode["NamespaceShowName"].asString(); + if(!dataNode["Quota"].isNull()) + data_.quota = std::stoi(dataNode["Quota"].asString()); + if(!dataNode["Namespace"].isNull()) + data_._namespace = dataNode["Namespace"].asString(); + if(!dataNode["NamespaceDesc"].isNull()) + data_.namespaceDesc = dataNode["NamespaceDesc"].asString(); + if(!dataNode["ConfigCount"].isNull()) + data_.configCount = std::stoi(dataNode["ConfigCount"].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 UpdateEngineNamespaceResult::getMessage()const +{ + return message_; +} + +UpdateEngineNamespaceResult::Data UpdateEngineNamespaceResult::getData()const +{ + return data_; +} + +std::string UpdateEngineNamespaceResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateEngineNamespaceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateGatewayDomainRequest.cc b/mse/src/model/UpdateGatewayDomainRequest.cc new file mode 100644 index 000000000..321670769 --- /dev/null +++ b/mse/src/model/UpdateGatewayDomainRequest.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::UpdateGatewayDomainRequest; + +UpdateGatewayDomainRequest::UpdateGatewayDomainRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayDomain") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayDomainRequest::~UpdateGatewayDomainRequest() {} + +std::string UpdateGatewayDomainRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayDomainRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string UpdateGatewayDomainRequest::getProtocol() const { + return protocol_; +} + +void UpdateGatewayDomainRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +bool UpdateGatewayDomainRequest::getMustHttps() const { + return mustHttps_; +} + +void UpdateGatewayDomainRequest::setMustHttps(bool mustHttps) { + mustHttps_ = mustHttps; + setParameter(std::string("MustHttps"), mustHttps ? "true" : "false"); +} + +long UpdateGatewayDomainRequest::getId() const { + return id_; +} + +void UpdateGatewayDomainRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); +} + +std::string UpdateGatewayDomainRequest::getCertIdentifier() const { + return certIdentifier_; +} + +void UpdateGatewayDomainRequest::setCertIdentifier(const std::string &certIdentifier) { + certIdentifier_ = certIdentifier; + setParameter(std::string("CertIdentifier"), certIdentifier); +} + +std::string UpdateGatewayDomainRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateGatewayDomainRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpdateGatewayDomainResult.cc b/mse/src/model/UpdateGatewayDomainResult.cc new file mode 100644 index 000000000..e7c9c1638 --- /dev/null +++ b/mse/src/model/UpdateGatewayDomainResult.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; + +UpdateGatewayDomainResult::UpdateGatewayDomainResult() : + ServiceResult() +{} + +UpdateGatewayDomainResult::UpdateGatewayDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayDomainResult::~UpdateGatewayDomainResult() +{} + +void UpdateGatewayDomainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string UpdateGatewayDomainResult::getMessage()const +{ + return message_; +} + +int UpdateGatewayDomainResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long UpdateGatewayDomainResult::getData()const +{ + return data_; +} + +int UpdateGatewayDomainResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayDomainResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateGatewayNameRequest.cc b/mse/src/model/UpdateGatewayNameRequest.cc new file mode 100644 index 000000000..134061642 --- /dev/null +++ b/mse/src/model/UpdateGatewayNameRequest.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::UpdateGatewayNameRequest; + +UpdateGatewayNameRequest::UpdateGatewayNameRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayName") { + setMethod(HttpRequest::Method::Get); +} + +UpdateGatewayNameRequest::~UpdateGatewayNameRequest() {} + +std::string UpdateGatewayNameRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayNameRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string UpdateGatewayNameRequest::getName() const { + return name_; +} + +void UpdateGatewayNameRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string UpdateGatewayNameRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateGatewayNameRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpdateGatewayNameResult.cc b/mse/src/model/UpdateGatewayNameResult.cc new file mode 100644 index 000000000..e6ddc21f2 --- /dev/null +++ b/mse/src/model/UpdateGatewayNameResult.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; + +UpdateGatewayNameResult::UpdateGatewayNameResult() : + ServiceResult() +{} + +UpdateGatewayNameResult::UpdateGatewayNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayNameResult::~UpdateGatewayNameResult() +{} + +void UpdateGatewayNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string UpdateGatewayNameResult::getMessage()const +{ + return message_; +} + +int UpdateGatewayNameResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateGatewayNameResult::getData()const +{ + return data_; +} + +int UpdateGatewayNameResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayNameResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateGatewayOptionRequest.cc b/mse/src/model/UpdateGatewayOptionRequest.cc new file mode 100644 index 000000000..83451b55e --- /dev/null +++ b/mse/src/model/UpdateGatewayOptionRequest.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mse::Model::UpdateGatewayOptionRequest; + +UpdateGatewayOptionRequest::UpdateGatewayOptionRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayOption") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayOptionRequest::~UpdateGatewayOptionRequest() {} + +std::string UpdateGatewayOptionRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayOptionRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +UpdateGatewayOptionRequest::GatewayOption UpdateGatewayOptionRequest::getGatewayOption() const { + return gatewayOption_; +} + +void UpdateGatewayOptionRequest::setGatewayOption(const UpdateGatewayOptionRequest::GatewayOption &gatewayOption) { + gatewayOption_ = gatewayOption; + setParameter(std::string("GatewayOption") + ".LogConfigDetails.ProjectName", gatewayOption.logConfigDetails.projectName); + setParameter(std::string("GatewayOption") + ".LogConfigDetails.LogStoreName", gatewayOption.logConfigDetails.logStoreName); + setParameter(std::string("GatewayOption") + ".LogConfigDetails.LogEnabled", gatewayOption.logConfigDetails.logEnabled ? "true" : "false"); + setParameter(std::string("GatewayOption") + ".TraceDetails.TraceEnabled", gatewayOption.traceDetails.traceEnabled ? "true" : "false"); + setParameter(std::string("GatewayOption") + ".TraceDetails.Sample", std::to_string(gatewayOption.traceDetails.sample)); +} + +long UpdateGatewayOptionRequest::getGatewayId() const { + return gatewayId_; +} + +void UpdateGatewayOptionRequest::setGatewayId(long gatewayId) { + gatewayId_ = gatewayId; + setParameter(std::string("GatewayId"), std::to_string(gatewayId)); +} + +std::string UpdateGatewayOptionRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateGatewayOptionRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpdateGatewayOptionResult.cc b/mse/src/model/UpdateGatewayOptionResult.cc new file mode 100644 index 000000000..04d173b34 --- /dev/null +++ b/mse/src/model/UpdateGatewayOptionResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +UpdateGatewayOptionResult::UpdateGatewayOptionResult() : + ServiceResult() +{} + +UpdateGatewayOptionResult::UpdateGatewayOptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayOptionResult::~UpdateGatewayOptionResult() +{} + +void UpdateGatewayOptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto traceDetailsNode = dataNode["TraceDetails"]; + if(!traceDetailsNode["TraceEnabled"].isNull()) + data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true"; + if(!traceDetailsNode["Sample"].isNull()) + data_.traceDetails.sample = std::stol(traceDetailsNode["Sample"].asString()); + auto logConfigDetailsNode = dataNode["LogConfigDetails"]; + if(!logConfigDetailsNode["LogEnabled"].isNull()) + data_.logConfigDetails.logEnabled = logConfigDetailsNode["LogEnabled"].asString() == "true"; + if(!logConfigDetailsNode["ProjectName"].isNull()) + data_.logConfigDetails.projectName = logConfigDetailsNode["ProjectName"].asString(); + if(!logConfigDetailsNode["LogStoreName"].isNull()) + data_.logConfigDetails.logStoreName = logConfigDetailsNode["LogStoreName"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateGatewayOptionResult::getMessage()const +{ + return message_; +} + +int UpdateGatewayOptionResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +UpdateGatewayOptionResult::Data UpdateGatewayOptionResult::getData()const +{ + return data_; +} + +int UpdateGatewayOptionResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayOptionResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateGatewayRouteHTTPRewriteRequest.cc b/mse/src/model/UpdateGatewayRouteHTTPRewriteRequest.cc new file mode 100644 index 000000000..d0bf37d3c --- /dev/null +++ b/mse/src/model/UpdateGatewayRouteHTTPRewriteRequest.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::UpdateGatewayRouteHTTPRewriteRequest; + +UpdateGatewayRouteHTTPRewriteRequest::UpdateGatewayRouteHTTPRewriteRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayRouteHTTPRewrite") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayRouteHTTPRewriteRequest::~UpdateGatewayRouteHTTPRewriteRequest() {} + +std::string UpdateGatewayRouteHTTPRewriteRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayRouteHTTPRewriteRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string UpdateGatewayRouteHTTPRewriteRequest::getHttpRewriteJSON() const { + return httpRewriteJSON_; +} + +void UpdateGatewayRouteHTTPRewriteRequest::setHttpRewriteJSON(const std::string &httpRewriteJSON) { + httpRewriteJSON_ = httpRewriteJSON; + setParameter(std::string("HttpRewriteJSON"), httpRewriteJSON); +} + +std::string UpdateGatewayRouteHTTPRewriteRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateGatewayRouteHTTPRewriteRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +long UpdateGatewayRouteHTTPRewriteRequest::getId() const { + return id_; +} + +void UpdateGatewayRouteHTTPRewriteRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); +} + +long UpdateGatewayRouteHTTPRewriteRequest::getGatewayId() const { + return gatewayId_; +} + +void UpdateGatewayRouteHTTPRewriteRequest::setGatewayId(long gatewayId) { + gatewayId_ = gatewayId; + setParameter(std::string("GatewayId"), std::to_string(gatewayId)); +} + diff --git a/mse/src/model/UpdateGatewayRouteHTTPRewriteResult.cc b/mse/src/model/UpdateGatewayRouteHTTPRewriteResult.cc new file mode 100644 index 000000000..a44182797 --- /dev/null +++ b/mse/src/model/UpdateGatewayRouteHTTPRewriteResult.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; + +UpdateGatewayRouteHTTPRewriteResult::UpdateGatewayRouteHTTPRewriteResult() : + ServiceResult() +{} + +UpdateGatewayRouteHTTPRewriteResult::UpdateGatewayRouteHTTPRewriteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayRouteHTTPRewriteResult::~UpdateGatewayRouteHTTPRewriteResult() +{} + +void UpdateGatewayRouteHTTPRewriteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string UpdateGatewayRouteHTTPRewriteResult::getMessage()const +{ + return message_; +} + +int UpdateGatewayRouteHTTPRewriteResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long UpdateGatewayRouteHTTPRewriteResult::getData()const +{ + return data_; +} + +int UpdateGatewayRouteHTTPRewriteResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayRouteHTTPRewriteResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateGatewayServiceVersionRequest.cc b/mse/src/model/UpdateGatewayServiceVersionRequest.cc new file mode 100644 index 000000000..67eee72b1 --- /dev/null +++ b/mse/src/model/UpdateGatewayServiceVersionRequest.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::UpdateGatewayServiceVersionRequest; + +UpdateGatewayServiceVersionRequest::UpdateGatewayServiceVersionRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayServiceVersion") { + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayServiceVersionRequest::~UpdateGatewayServiceVersionRequest() {} + +std::string UpdateGatewayServiceVersionRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateGatewayServiceVersionRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +std::string UpdateGatewayServiceVersionRequest::getServiceVersion() const { + return serviceVersion_; +} + +void UpdateGatewayServiceVersionRequest::setServiceVersion(const std::string &serviceVersion) { + serviceVersion_ = serviceVersion; + setParameter(std::string("ServiceVersion"), serviceVersion); +} + +std::string UpdateGatewayServiceVersionRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateGatewayServiceVersionRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +long UpdateGatewayServiceVersionRequest::getServiceId() const { + return serviceId_; +} + +void UpdateGatewayServiceVersionRequest::setServiceId(long serviceId) { + serviceId_ = serviceId; + setParameter(std::string("ServiceId"), std::to_string(serviceId)); +} + diff --git a/mse/src/model/UpdateGatewayServiceVersionResult.cc b/mse/src/model/UpdateGatewayServiceVersionResult.cc new file mode 100644 index 000000000..e82ba0858 --- /dev/null +++ b/mse/src/model/UpdateGatewayServiceVersionResult.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; + +UpdateGatewayServiceVersionResult::UpdateGatewayServiceVersionResult() : + ServiceResult() +{} + +UpdateGatewayServiceVersionResult::UpdateGatewayServiceVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayServiceVersionResult::~UpdateGatewayServiceVersionResult() +{} + +void UpdateGatewayServiceVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + +} + +std::string UpdateGatewayServiceVersionResult::getMessage()const +{ + return message_; +} + +int UpdateGatewayServiceVersionResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long UpdateGatewayServiceVersionResult::getData()const +{ + return data_; +} + +int UpdateGatewayServiceVersionResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayServiceVersionResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateImageRequest.cc b/mse/src/model/UpdateImageRequest.cc new file mode 100644 index 000000000..9d945a832 --- /dev/null +++ b/mse/src/model/UpdateImageRequest.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::UpdateImageRequest; + +UpdateImageRequest::UpdateImageRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateImage") { + setMethod(HttpRequest::Method::Post); +} + +UpdateImageRequest::~UpdateImageRequest() {} + +std::string UpdateImageRequest::getClusterId() const { + return clusterId_; +} + +void UpdateImageRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string UpdateImageRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateImageRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = 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/UpdateImageResult.cc b/mse/src/model/UpdateImageResult.cc new file mode 100644 index 000000000..d9c353f35 --- /dev/null +++ b/mse/src/model/UpdateImageResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +UpdateImageResult::UpdateImageResult() : + ServiceResult() +{} + +UpdateImageResult::UpdateImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateImageResult::~UpdateImageResult() +{} + +void UpdateImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].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 UpdateImageResult::getMessage()const +{ + return message_; +} + +std::string UpdateImageResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateImageResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateNacosClusterRequest.cc b/mse/src/model/UpdateNacosClusterRequest.cc new file mode 100644 index 000000000..a7c951748 --- /dev/null +++ b/mse/src/model/UpdateNacosClusterRequest.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::UpdateNacosClusterRequest; + +UpdateNacosClusterRequest::UpdateNacosClusterRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateNacosCluster") { + setMethod(HttpRequest::Method::Post); +} + +UpdateNacosClusterRequest::~UpdateNacosClusterRequest() {} + +std::string UpdateNacosClusterRequest::getClusterName() const { + return clusterName_; +} + +void UpdateNacosClusterRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + setParameter(std::string("ClusterName"), clusterName); +} + +int UpdateNacosClusterRequest::getCheckPort() const { + return checkPort_; +} + +void UpdateNacosClusterRequest::setCheckPort(int checkPort) { + checkPort_ = checkPort; + setParameter(std::string("CheckPort"), std::to_string(checkPort)); +} + +std::string UpdateNacosClusterRequest::getGroupName() const { + return groupName_; +} + +void UpdateNacosClusterRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string UpdateNacosClusterRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateNacosClusterRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = 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_; +} + +void UpdateNacosClusterRequest::setHealthChecker(const std::string &healthChecker) { + healthChecker_ = healthChecker; + setParameter(std::string("HealthChecker"), healthChecker); +} + +std::string UpdateNacosClusterRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateNacosClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + 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_; +} + +void UpdateNacosClusterRequest::setUseInstancePortForCheck(bool useInstancePortForCheck) { + useInstancePortForCheck_ = useInstancePortForCheck; + setParameter(std::string("UseInstancePortForCheck"), useInstancePortForCheck ? "true" : "false"); +} + diff --git a/mse/src/model/UpdateNacosClusterResult.cc b/mse/src/model/UpdateNacosClusterResult.cc new file mode 100644 index 000000000..aa4877189 --- /dev/null +++ b/mse/src/model/UpdateNacosClusterResult.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; + +UpdateNacosClusterResult::UpdateNacosClusterResult() : + ServiceResult() +{} + +UpdateNacosClusterResult::UpdateNacosClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateNacosClusterResult::~UpdateNacosClusterResult() +{} + +void UpdateNacosClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string UpdateNacosClusterResult::getMessage()const +{ + return message_; +} + +int UpdateNacosClusterResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateNacosClusterResult::getData()const +{ + return data_; +} + +int UpdateNacosClusterResult::getCode()const +{ + return code_; +} + +bool UpdateNacosClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateNacosConfigRequest.cc b/mse/src/model/UpdateNacosConfigRequest.cc new file mode 100644 index 000000000..cb877863d --- /dev/null +++ b/mse/src/model/UpdateNacosConfigRequest.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::UpdateNacosConfigRequest; + +UpdateNacosConfigRequest::UpdateNacosConfigRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateNacosConfig") { + setMethod(HttpRequest::Method::Post); +} + +UpdateNacosConfigRequest::~UpdateNacosConfigRequest() {} + +std::string UpdateNacosConfigRequest::getEncryptedDataKey() const { + return encryptedDataKey_; +} + +void UpdateNacosConfigRequest::setEncryptedDataKey(const std::string &encryptedDataKey) { + encryptedDataKey_ = encryptedDataKey; + setParameter(std::string("EncryptedDataKey"), encryptedDataKey); +} + +std::string UpdateNacosConfigRequest::getType() const { + return type_; +} + +void UpdateNacosConfigRequest::setType(const std::string &type) { + type_ = 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_; +} + +void UpdateNacosConfigRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string UpdateNacosConfigRequest::getNamespaceId() const { + return namespaceId_; +} + +void UpdateNacosConfigRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = namespaceId; + setParameter(std::string("NamespaceId"), namespaceId); +} + +std::string UpdateNacosConfigRequest::getGroup() const { + return group_; +} + +void UpdateNacosConfigRequest::setGroup(const std::string &group) { + group_ = group; + setParameter(std::string("Group"), group); +} + +std::string UpdateNacosConfigRequest::getTags() const { + return tags_; +} + +void UpdateNacosConfigRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string UpdateNacosConfigRequest::getBetaIps() const { + return betaIps_; +} + +void UpdateNacosConfigRequest::setBetaIps(const std::string &betaIps) { + betaIps_ = betaIps; + setParameter(std::string("BetaIps"), betaIps); +} + +std::string UpdateNacosConfigRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateNacosConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string UpdateNacosConfigRequest::getDataId() const { + return dataId_; +} + +void UpdateNacosConfigRequest::setDataId(const std::string &dataId) { + dataId_ = dataId; + setParameter(std::string("DataId"), dataId); +} + +std::string UpdateNacosConfigRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + 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_; +} + +void UpdateNacosConfigRequest::setMd5(const std::string &md5) { + md5_ = md5; + setParameter(std::string("Md5"), md5); +} + diff --git a/mse/src/model/UpdateNacosConfigResult.cc b/mse/src/model/UpdateNacosConfigResult.cc new file mode 100644 index 000000000..8307d0bb8 --- /dev/null +++ b/mse/src/model/UpdateNacosConfigResult.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; + +UpdateNacosConfigResult::UpdateNacosConfigResult() : + ServiceResult() +{} + +UpdateNacosConfigResult::UpdateNacosConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateNacosConfigResult::~UpdateNacosConfigResult() +{} + +void UpdateNacosConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + 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 UpdateNacosConfigResult::getHttpCode()const +{ + return httpCode_; +} + +std::string UpdateNacosConfigResult::getMessage()const +{ + return message_; +} + +std::string UpdateNacosConfigResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateNacosConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateNacosInstanceRequest.cc b/mse/src/model/UpdateNacosInstanceRequest.cc new file mode 100644 index 000000000..52e42753b --- /dev/null +++ b/mse/src/model/UpdateNacosInstanceRequest.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::UpdateNacosInstanceRequest; + +UpdateNacosInstanceRequest::UpdateNacosInstanceRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateNacosInstance") { + setMethod(HttpRequest::Method::Post); +} + +UpdateNacosInstanceRequest::~UpdateNacosInstanceRequest() {} + +std::string UpdateNacosInstanceRequest::getMetadata() const { + return metadata_; +} + +void UpdateNacosInstanceRequest::setMetadata(const std::string &metadata) { + metadata_ = metadata; + setBodyParameter(std::string("Metadata"), metadata); +} + +std::string UpdateNacosInstanceRequest::getClusterName() const { + return clusterName_; +} + +void UpdateNacosInstanceRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + setParameter(std::string("ClusterName"), clusterName); +} + +bool UpdateNacosInstanceRequest::getEphemeral() const { + return ephemeral_; +} + +void UpdateNacosInstanceRequest::setEphemeral(bool ephemeral) { + ephemeral_ = 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_; +} + +void UpdateNacosInstanceRequest::setNamespaceId(const std::string &namespaceId) { + namespaceId_ = 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_; +} + +void UpdateNacosInstanceRequest::setIp(const std::string &ip) { + ip_ = ip; + setParameter(std::string("Ip"), ip); +} + +std::string UpdateNacosInstanceRequest::getWeight() const { + return weight_; +} + +void UpdateNacosInstanceRequest::setWeight(const std::string &weight) { + weight_ = weight; + setParameter(std::string("Weight"), weight); +} + +std::string UpdateNacosInstanceRequest::getGroupName() const { + return groupName_; +} + +void UpdateNacosInstanceRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string UpdateNacosInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateNacosInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int UpdateNacosInstanceRequest::getPort() const { + return port_; +} + +void UpdateNacosInstanceRequest::setPort(int port) { + port_ = port; + setParameter(std::string("Port"), std::to_string(port)); +} + +std::string UpdateNacosInstanceRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateNacosInstanceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpdateNacosInstanceResult.cc b/mse/src/model/UpdateNacosInstanceResult.cc new file mode 100644 index 000000000..a2b46f943 --- /dev/null +++ b/mse/src/model/UpdateNacosInstanceResult.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; + +UpdateNacosInstanceResult::UpdateNacosInstanceResult() : + ServiceResult() +{} + +UpdateNacosInstanceResult::UpdateNacosInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateNacosInstanceResult::~UpdateNacosInstanceResult() +{} + +void UpdateNacosInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string UpdateNacosInstanceResult::getMessage()const +{ + return message_; +} + +int UpdateNacosInstanceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateNacosInstanceResult::getData()const +{ + return data_; +} + +int UpdateNacosInstanceResult::getCode()const +{ + return code_; +} + +bool UpdateNacosInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateNacosServiceRequest.cc b/mse/src/model/UpdateNacosServiceRequest.cc new file mode 100644 index 000000000..6f92cca23 --- /dev/null +++ b/mse/src/model/UpdateNacosServiceRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::UpdateNacosServiceRequest; + +UpdateNacosServiceRequest::UpdateNacosServiceRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateNacosService") { + setMethod(HttpRequest::Method::Post); +} + +UpdateNacosServiceRequest::~UpdateNacosServiceRequest() {} + +std::string UpdateNacosServiceRequest::getClusterId() const { + return clusterId_; +} + +void UpdateNacosServiceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string UpdateNacosServiceRequest::getGroupName() const { + return groupName_; +} + +void UpdateNacosServiceRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string UpdateNacosServiceRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateNacosServiceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = 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_; +} + +void UpdateNacosServiceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + 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_; +} + +void UpdateNacosServiceRequest::setProtectThreshold(const std::string &protectThreshold) { + protectThreshold_ = protectThreshold; + setParameter(std::string("ProtectThreshold"), protectThreshold); +} + diff --git a/mse/src/model/UpdateNacosServiceResult.cc b/mse/src/model/UpdateNacosServiceResult.cc new file mode 100644 index 000000000..4de2d7e3d --- /dev/null +++ b/mse/src/model/UpdateNacosServiceResult.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; + +UpdateNacosServiceResult::UpdateNacosServiceResult() : + ServiceResult() +{} + +UpdateNacosServiceResult::UpdateNacosServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateNacosServiceResult::~UpdateNacosServiceResult() +{} + +void UpdateNacosServiceResult::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["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"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateNacosServiceResult::getMessage()const +{ + return message_; +} + +int UpdateNacosServiceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateNacosServiceResult::getData()const +{ + return data_; +} + +int UpdateNacosServiceResult::getCode()const +{ + return code_; +} + +bool UpdateNacosServiceResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateSSLCertRequest.cc b/mse/src/model/UpdateSSLCertRequest.cc new file mode 100644 index 000000000..897a1bf4b --- /dev/null +++ b/mse/src/model/UpdateSSLCertRequest.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::UpdateSSLCertRequest; + +UpdateSSLCertRequest::UpdateSSLCertRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateSSLCert") { + setMethod(HttpRequest::Method::Get); +} + +UpdateSSLCertRequest::~UpdateSSLCertRequest() {} + +std::string UpdateSSLCertRequest::getGatewayUniqueId() const { + return gatewayUniqueId_; +} + +void UpdateSSLCertRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) { + gatewayUniqueId_ = gatewayUniqueId; + setParameter(std::string("GatewayUniqueId"), gatewayUniqueId); +} + +long UpdateSSLCertRequest::getDomainId() const { + return domainId_; +} + +void UpdateSSLCertRequest::setDomainId(long domainId) { + domainId_ = domainId; + setParameter(std::string("DomainId"), std::to_string(domainId)); +} + +std::string UpdateSSLCertRequest::getCertIdentifier() const { + return certIdentifier_; +} + +void UpdateSSLCertRequest::setCertIdentifier(const std::string &certIdentifier) { + certIdentifier_ = certIdentifier; + setParameter(std::string("CertIdentifier"), certIdentifier); +} + +std::string UpdateSSLCertRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateSSLCertRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpdateSSLCertResult.cc b/mse/src/model/UpdateSSLCertResult.cc new file mode 100644 index 000000000..6b6251022 --- /dev/null +++ b/mse/src/model/UpdateSSLCertResult.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; + +UpdateSSLCertResult::UpdateSSLCertResult() : + ServiceResult() +{} + +UpdateSSLCertResult::UpdateSSLCertResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSSLCertResult::~UpdateSSLCertResult() +{} + +void UpdateSSLCertResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +std::string UpdateSSLCertResult::getMessage()const +{ + return message_; +} + +int UpdateSSLCertResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool UpdateSSLCertResult::getData()const +{ + return data_; +} + +int UpdateSSLCertResult::getCode()const +{ + return code_; +} + +bool UpdateSSLCertResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpdateZnodeRequest.cc b/mse/src/model/UpdateZnodeRequest.cc new file mode 100644 index 000000000..981abe9c0 --- /dev/null +++ b/mse/src/model/UpdateZnodeRequest.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::UpdateZnodeRequest; + +UpdateZnodeRequest::UpdateZnodeRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpdateZnode") { + setMethod(HttpRequest::Method::Post); +} + +UpdateZnodeRequest::~UpdateZnodeRequest() {} + +std::string UpdateZnodeRequest::getData() const { + return data_; +} + +void UpdateZnodeRequest::setData(const std::string &data) { + data_ = 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_; +} + +void UpdateZnodeRequest::setPath(const std::string &path) { + path_ = path; + setParameter(std::string("Path"), path); +} + +std::string UpdateZnodeRequest::getRequestPars() const { + return requestPars_; +} + +void UpdateZnodeRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string UpdateZnodeRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpdateZnodeRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpdateZnodeResult.cc b/mse/src/model/UpdateZnodeResult.cc new file mode 100644 index 000000000..b4ec359a9 --- /dev/null +++ b/mse/src/model/UpdateZnodeResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mse; +using namespace AlibabaCloud::Mse::Model; + +UpdateZnodeResult::UpdateZnodeResult() : + ServiceResult() +{} + +UpdateZnodeResult::UpdateZnodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateZnodeResult::~UpdateZnodeResult() +{} + +void UpdateZnodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].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 UpdateZnodeResult::getMessage()const +{ + return message_; +} + +std::string UpdateZnodeResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateZnodeResult::getSuccess()const +{ + return success_; +} + diff --git a/mse/src/model/UpgradeClusterRequest.cc b/mse/src/model/UpgradeClusterRequest.cc new file mode 100644 index 000000000..701651f0f --- /dev/null +++ b/mse/src/model/UpgradeClusterRequest.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::UpgradeClusterRequest; + +UpgradeClusterRequest::UpgradeClusterRequest() + : RpcServiceRequest("mse", "2019-05-31", "UpgradeCluster") { + setMethod(HttpRequest::Method::Post); +} + +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::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_; +} + +void UpgradeClusterRequest::setRequestPars(const std::string &requestPars) { + requestPars_ = requestPars; + setParameter(std::string("RequestPars"), requestPars); +} + +std::string UpgradeClusterRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void UpgradeClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/mse/src/model/UpgradeClusterResult.cc b/mse/src/model/UpgradeClusterResult.cc new file mode 100644 index 000000000..c3355bb0e --- /dev/null +++ b/mse/src/model/UpgradeClusterResult.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; + +UpgradeClusterResult::UpgradeClusterResult() : + ServiceResult() +{} + +UpgradeClusterResult::UpgradeClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeClusterResult::~UpgradeClusterResult() +{} + +void UpgradeClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = value["HttpCode"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpgradeClusterResult::getHttpCode()const +{ + return httpCode_; +} + +std::string UpgradeClusterResult::getMessage()const +{ + return message_; +} + +std::string UpgradeClusterResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpgradeClusterResult::getSuccess()const +{ + return success_; +} +